Is there a way I can get the global tint color from my project by code? To avoid a misunderstanding I mean the global tint color, which i can set in the File Inspector.
Swift 4.x:
extension UIColor { static var tintColor: UIColor { get { return UIApplication.shared.keyWindow?.rootViewController?.view.tintColor ?? .red } } }
Usage:
textField.textColor = .tintColor