Swift przełączanie się po zmianie
Toggle(isOn: $state){
Text("This is a toggle")
}
.onChange(of: state) {
// The action you want to trigger
}
Bored Bee
Toggle(isOn: $state){
Text("This is a toggle")
}
.onChange(of: state) {
// The action you want to trigger
}