Contents

init(frame:)

Creates a switch control.

Declaration

init(frame: CGRect)

Parameters

  • frame:

    A rectangle defining the frame of the Uiswitch object. The size components of this rectangle are ignored.

Return Value

An initialized UISwitch object.

Discussion

UISwitch overrides init(frame:) and enforces a size appropriate for the control.

See Also

Creating a switch