SKCheckbox
open class SKCheckbox : UIControl
An image based checkbox.
-
The image of the checkbox when checked and enabled.
Declaration
Swift
public var isEnabledAndCheckedImage: UIImage? { get set }
-
The image of the checkbox when unchecked and enabled.
Declaration
Swift
public var isEnabledAndNotCheckedImage: UIImage? { get set }
-
The image of the checkbox when checked and disabled.
Declaration
Swift
public var isDisabledAndCheckedImage: UIImage? { get set }
-
The image of the checkbox when unchecked and disabled.
Declaration
Swift
public var isDisabledAndNotCheckedImage: UIImage? { get set }
-
Overriding the original method to update the icon based on state.
Declaration
Swift
open override var isEnabled: Bool { get set }
-
Whether or not the checkbox is checked.
Declaration
Swift
public var isChecked: Bool { get set }
-
An closure that allows the user to add a condition to whether or not the checkbox value should change. If it returns true, the tracking continues, the checkbox switches state. If it returns false, the value of the checkbox does not change.
Declaration
Swift
public var valueShouldChange: ((SKCheckbox, Bool) -> (Bool))?
-
An interaction that is called right before the checkbox switches state. Use it to execute any pre change operations.
Declaration
Swift
public var valueWillChange: ((SKCheckbox, Bool) -> Void)?
-
An interaction that is called right after the checkbox switches state. Use it to execute any post change operations.
Declaration
Swift
public var valueDidChange: ((SKCheckbox, Bool) -> Void)?
-
init
via code.Declaration
Swift
public override init(frame: CGRect)
-
init
via IB.Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Layout the image inside the button.
Declaration
Swift
open override func layoutSubviews()
-
A responder to when a touch interaction starts.
Declaration
Swift
open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)