I am using UISwitch in iOS 3 to make a switch element in my app. It has default color set to blue, but I want to change its color to brown.
UISwitch
How can I choose
For a global change for all UISwitch elements in Swift 3, use the appearance proxy:
UISwitch.appearance().onTintColor = UIColor.brown
under the AppDelegate application:didFinishLaunchingWithOptions: method.
application:didFinishLaunchingWithOptions: