I\'ve learned that we can change the UISwitch button appearance in its \"on\" state, but is it also possible to change the color of the UISwitch in the \"off\" state?
Working 100% IOS 13.0 and Swift 5.0 switch both state color set same #ios13 #swift #swift5
@IBOutlet weak var switchProfile: UISwitch!{ didSet{ switchProfile.onTintColor = .red switchProfile.tintColor = .red switchProfile.subviews[0].subviews[0].backgroundColor = .red } }