Question : toggle inn swift10
Answered by : bored-bee-07jq7a81irhv
Toggle(isOn: $state){ Text("This is a toggle")
}
.onChange(of: state) { // The action you want to trigger
}
Source : | Last Update : Tue, 02 Feb 21
Answered by : bored-bee-07jq7a81irhv
Toggle(isOn: $state){ Text("This is a toggle")
}
.onChange(of: state) { // The action you want to trigger
}
Source : | Last Update : Tue, 02 Feb 21