Answers for "toggle onchange swiftui"

0

swift toggle on change

Toggle(isOn: $state){
  Text("This is a toggle")
}
.onChange(of: state) {
  // The action you want to trigger
}
Posted by: Guest on January-26-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language