SwiftyUtils v0.3.0 Release Notes

Release Date: 2016-05-19 // almost 8 years ago
  • API breaking changes

    • Creating an UIImage from UIColor is now more swifty: UIImage(color: .orangeColor()) instead of UIImage.imageWithTintColor(.orangeColor())

    ✨ Enhancements

    👀 Note: Take a look into the README to see the details of all the following enhancements

    🆕 New extensions:

    • NSNotificationCenter:
    func postNotification(name name: String, object: AnyObject? = nil, userInfo: [NSObject : AnyObject]? = nil, queue: dispatch_queue_t)
    

    🆕 New iOS extensions:

    • UIAlertController:
    static func show(title title: String, message: String, cancelTitle: String = "OK")
    
    • UIApplication:
    func topViewController() -> UIViewController?
    
    • UIDevice
    func forceRotation(orientation: UIInterfaceOrientation)