Checkbox

public class Checkbox : UIControl

Undocumented

  • 选择框内部选中样式

    Declaration

    Swift

    public enum CheckmarkStyle
  • 选择框边框样式

    Declaration

    Swift

    public enum BorderStyle
  • 默认选中样式

    Declaration

    Swift

    public var checkmarkStyle: CheckmarkStyle
  • 默认边框样式

    Declaration

    Swift

    public var borderStyle: BorderStyle
  • 边框宽度

    Declaration

    Swift

    public var borderLineWidth: CGFloat
  • 选中样式尺寸

    Declaration

    Swift

    public var checkmarkSize: CGFloat
  • 未选中边框颜色

    Declaration

    Swift

    public var uncheckedBorderColor: UIColor!
  • 选中边框颜色

    Declaration

    Swift

    public var checkedBorderColor: UIColor!
  • 内部选中样式颜色

    Declaration

    Swift

    public var checkmarkColor: UIColor!
  • 选中时内部空白处颜色

    Declaration

    Swift

    public var checkboxFillColor: UIColor
  • 未选中时内部空白颜色

    Declaration

    Swift

    public var uncheckboxFillColor: UIColor
  • 圆角度数,只适用于当BorderStyle = square

    Declaration

    Swift

    public var borderCornerRadius: CGFloat
  • 增大外部热区尺寸

    Declaration

    Swift

    public var increasedTouchRadius: CGFloat
  • 选中状态改变闭包

    Declaration

    Swift

    public var valueChanged: ((_ isChecked: Bool) -> Void)?
  • 是否选中

    Declaration

    Swift

    public var isChecked: Bool { get set }
  • 选中时是否有触感反馈效果

    Declaration

    Swift

    public var useHapticFeedback: Bool
  • Undocumented

    Declaration

    Swift

    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    override public func draw(_ rect: CGRect)
  • Undocumented

    Declaration

    Swift

    override public func point(inside point: CGPoint, with event: UIEvent?) -> Bool