Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

switch button swift 5

 @IBAction func switch(_ sender: Any) {
          if ((sender as AnyObject).isOn == true) {
         //Yes
          } else {
            //No
          }
    }
 
PREVIOUS NEXT
Tagged: #switch #button #swift
ADD COMMENT
Topic
Name
7+6 =