MengTo / Spring

A library to simplify iOS animations in Swift.
http://designcode.io
MIT License
14.08k stars 1.8k forks source link

swift 4 compiler error in DesignableTabBarController #272

Open flyingdandelion opened 7 years ago

flyingdandelion commented 7 years ago
  1. UITabBarItem setTitleTextAttributes function declaration in Swift 4 open func setTitleTextAttributes(_ attributes: [NSAttributedStringKey : Any]?, for state: UIControlState)

So DesignableTabBarController, it need to change Attributes from String to NSAttributedStringKey i.e. change UITabBarItem.appearance().setTitleTextAttributes([NSAttributedStringKey.foregroundColor.rawValue: normalTint], for: UIControlState()) to UITabBarItem.appearance().setTitleTextAttributes([NSAttributedStringKey.foregroundColor: normalTint], for: UIControlState())