preferredStyle
The preferred display style for the switch.
Declaration
var preferredStyle: UISwitch.Style { get set }Mentioned in
Discussion
Use this property to specify the display style that you prefer. If the style changes, the switch may generate a layout pass to update the display.
The default style is UISwitch.Style.automatic. For a list of styles, see UISwitch.Style.