A repository with nifty Swift extensions to make you more productive! (This repository will have on-going updates. More extensions coming soon!)
- Swift 4.2
- iOS 10 or later
Cocoapods
You may opt to install all or only some extensions. Refer to the Available Extensions section to see what extensions are available.
Add one of the following to your Podfile
:
# Add this to install all extensions
pod 'ProductivityKit'
# Or, add this to install all UIView extensions
pod 'ProductivityKit/UIView'
# Or, add this to install only the UIView styling extensions
pod 'ProductivityKit/UIView/Styling'
Simply import the ProductivityKit
and you can straight away use the extensions installed.
import ProductivityKit
class MyController: UIViewController {
...
override func viewDidLoad() {
super.viewDidLoad()
let view = UIView()
view.setupBorder(colour: UIColor.black, width: 0.5)
}
...
}
Head over to the folders listed to see more details of the extensions for a particular Swift core class.
- Date
Utility
- String
Formatting
- NSMutableAttributedString
Interpolations
- UIColor
RGBA
- UIView
Styling
Or view the source code docs to dive deeper.
See LICENSE file for details