Class
CheckboxLayout
public final class CheckboxLayout: NSObject, ComponentLayout
The ComponentLayout to make a Checkbox. You usually won't need to use this directly, prefer to use Checkbox instead.
Relationships
Conforms To
ComponentLayout
A protocol to share components (view layouts) across different types.
NSObject
Properties
offBorderColor
public var offBorderColor: UIColor = ColorManager.Neutral.fourHundred
The border color of the off state
imageColor
public var imageColor: UIColor = .white
The color of the image in the checkbox (Only displayed while in the on state)
animationDuration
public var animationDuration: TimeInterval = 0.25
The duration of the toggle animation. Set to 0 to disable animations.
Methods
layout(on:)
public func layout(on view: UIView)
update(isOn:animateBackground:)
public func update(isOn: Bool, animateBackground: Bool = true)
Updates the state of the layout and performs animations.