Swifter Swift is a collection of over 360 Swift 3 extensions from Omar Albeik created to make working with Swift 3 more productive.
SwifterSwift includes extensions for data types, user interface elements, dates, and more. Each extension is explained within the source code.
This snippet below from the homepage shows some of the UIImage extensions in action:
let croppedImage = image.cropped(to CGRect)
// Create UIImage from color
let image = UIImage(color: UIColor, size: CGSize)
// scale to fit width or height
let scaledImage = image.scaled(toHeight: CGFloat)
let scaledImage = image.scaled(toWidth: CGFloat)
// Compress images
let compressedImage = image.compressd(quality: 0.3)
// get image size
image.kilobytesSize = 114
// and many others!
You can find SwifterSwift on the homepage here.
A great collection of Swift 3 extensions.
Original article: SwifterSwift – An On Open Source Library Providing An Extension Collection Of Swift 3 Extensions
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools