Quantcast
Channel: On/Off haptic feedback Switch (Swift) - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Francesco Deliro for On/Off haptic feedback Switch (Swift)

You can store the switch state in UserDefaults and then check for it in your function.In your switch action:@IBAction func switchAction(sender: UISwitch) { if sender.isOn {...

View Article



On/Off haptic feedback Switch (Swift)

I have SettingsVC ("Photo" there are 2 switch) and MainVC ("Code" there is a function for adding haptic feedback buttons).How can I make it so that when you turn off the Switch in Setting, then the...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images