Answers for "swift switch button example"

0

switch button swift 5

@IBAction func switch(_ sender: Any) {
          if ((sender as AnyObject).isOn == true) {
         //Yes
          } else {
            //No
          }
    }
Posted by: Guest on December-22-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language