Swiftpack.co - Package - cszatma/SwiftySweetness


Language Swift CI Status Release Version Platforms License SPM

SwiftySweetness is a list of extensions that provides extra functionality and syntactic sugar.


Swift Package Manager

The recommended way to install SwiftySweetness is by using the Swift Package Manager.

To install it, add the following to your Package.swift's dependencies array:

.package(url: "https://github.com/cszatma/SwiftySweetness.git", from: "3.0.0")

Then simply import it to use:

import SwiftySweetness


SwiftySweetness is also available through CocoaPods.

To install it, add the following line to your Podfile:

pod 'SwiftySweetness', '~> 3.0'


See the documentation for information on all the features this library provides.


SwiftySweetness is available under the MIT License.


Open an issue or submit a pull request.


Stars: 1

Used By

Total: 0


v3.0.0 - 2019-06-25 01:58:03

The project has been completely restructured and is now a pure SPM package (no more xcodeproj in git, yay!) with proper Linux support. Also added tests, CI, and better documentation.

Breaking Changes

  • CGRect extensions have been removed. It is not part of the Swift standard library or Foundation so it is outside the scope of this project
  • Swift 5 target by default
  • Int#reverseNumber() has been renamed to Int#reversed()
  • Double#roundTo(place:) has been renamed to Double#rounded(to:)
  • String#splitCamelCase() has been renamed to String#splittingCamelCase()
  • String#pad has been removed and replaced with String#paddingStart and String#paddingEnd


  • If and Switch classes for creating condition expressions
  • Unit tests
  • Improved docs
  • Changelog

v2.0.0 - 2018-09-17 02:19:50

Removed UIKit and AppKit extensions and any references to these frameworks. This is now a pure Swift framework.