I've got 4 SwichButton, this is standard to Off.
How can I save the setting when a switch button is set to on ?
I have this:
@IBAction func SwitchNofic(_ sender: UISwitch) {
let switchTag = sender.tag
if (switchTag == 1) && (sender.isOn == true){
print("1")
createNoficationMorgen()
}else if (switchTag == 2) && (sender.isOn == true){
print("2")
createNoficationMittag()
}else if (switchTag == 3) && (sender.isOn == true){
print("3")
createNoficationAbend()
}else if (switchTag == 4) && (sender.isOn == true){
print("4")
createNoficationNacht()
}
}