Set the state of the switch to On or Off, optionally animating the transition.
- iOS 2.0+
- Mac Catalyst 13.0+Beta
trueif the switch should be turned to the On position;
falseif it should be turned to the Off position. If the switch is already in the designated position, nothing happens.
trueto animate the “flipping” of the switch; otherwise
Setting the switch to either position does not result in an action message being sent.