PasscodeCellProperty

open class PasscodeCellProperty : NSObject, NSCopying

Undocumented

  • cell边框宽度,默认:0.5

    Declaration

    Swift

    open var borderWidth: CGFloat
  • cell边框颜色,未选中状态时。默认:[UIColor colorWithRed:228/255.0 green:228/255.0 blue:228/255.0 alpha:1]

    Declaration

    Swift

    open var cellBorderColorNormal: UIColor?
  • cell边框颜色,选中状态时。默认:[UIColor colorWithRed:255/255.0 green:70/255.0 blue:62/255.0 alpha:1]

    Declaration

    Swift

    open var cellBorderColorSelected: UIColor?
  • cell边框颜色,无填充文字,未选中状态时。默认:与cellBorderColorFilled相同

    Declaration

    Swift

    open var cellBorderColorFilled: UIColor?
  • cell背景颜色,无填充文字,未选中状态时。默认:[UIColor whiteColor]

    Declaration

    Swift

    open var cellBgColorNormal: UIColor?
  • cell背景颜色,选中状态时。默认:[UIColor whiteColor]

    Declaration

    Swift

    open var cellBgColorSelected: UIColor?
  • cell背景颜色,填充文字后,未选中状态时。默认:与cellBgColorFilled相同

    Declaration

    Swift

    open var cellBgColorFilled: UIColor?
  • 光标颜色。默认: [UIColor colorWithRed:255/255.0 green:70/255.0 blue:62/255.0 alpha:1]

    Declaration

    Swift

    open var cellCursorColor: UIColor?
  • 光标宽度。默认: 2

    Declaration

    Swift

    open var cellCursorWidth: CGFloat
  • 光标高度。默认: 32

    Declaration

    Swift

    open var cellCursorHeight: CGFloat
  • 圆角。默认: 4

    Declaration

    Swift

    open var cornerRadius: CGFloat
  • 显示下划线。默认: NO

    Declaration

    Swift

    open var showLine: Bool
  • 字体/字号。默认:[UIFont systemFontOfSize:20]

    Declaration

    Swift

    open var cellFont: UIFont?
  • 字体颜色。默认:[UIColor blackColor]

    Declaration

    Swift

    open var cellTextColor: UIColor?
  • 是否密文显示。默认:NO

    Declaration

    Swift

    open var showSecurity: Bool
  • 密文符号。默认:✱,说明:只有showSecurity=YES时,有效

    Declaration

    Swift

    open var securitySymbol: String
  • 保存当前显示的字符,若想一次性修改所有输入值,请使用reloadInputString方法。禁止修改该值!!!(除非你知道该怎么使用它。)

    Declaration

    Swift

    open var originValue: String
  • 密文类型,默认:PasscodeSecurityTypeSymbol 类型说明: PasscodeSecurityTypeSymbol 符号类型,根据securitySymbol,originValue的内容来显示 PasscodeSecurityTypeView 自定义View类型,可以自定义密文状态下的图片,View

    Declaration

    Swift

    open var securityType: PasscodeSecurityType
  • 占位符默认填充值,禁止修改该值!!!(除非你知道该怎么使用它。)

    Declaration

    Swift

    open var cellPlaceholderText: String?
  • 占位符字体颜色,默认:[UIColor colorWithRed:114/255.0 green:126/255.0 blue:124/255.0 alpha:0.3]

    Declaration

    Swift

    open var cellPlaceholderTextColor: UIColor?
  • 占位符字体/字号,默认:[UIFont systemFontOfSize:20]

    Declaration

    Swift

    open var cellPlaceholderFont: UIFont?
  • 自定义密文View回调,默认创建视图

    Declaration

    Swift

    open var customSecurityViewBlock: (@MainActor @Sendable () -> UIView)?
  • 自定义下划线回调,默认PasscodeLineView

    Declaration

    Swift

    open var customLineViewBlock: (@MainActor @Sendable () -> PasscodeLineView)?
  • 自定义阴影回调,默认nil

    Declaration

    Swift

    open var configCellShadowBlock: (@MainActor @Sendable (CALayer) -> Void)?
  • Undocumented

    Declaration

    Swift

    open var index: Int
  • Undocumented

    Declaration

    Swift

    override public required init()
  • Undocumented

    Declaration

    Swift

    open func copy(with zone: NSZone? = nil) -> Any