TKIdentifyInputView 2.0.2

TKIdentifyInputView 2.0.2

Tungkay 维护。



  • tongkai

TKIdentifyInputView

支持多种样式的验证码输入框/an input view for vertifing code

支持

  • Swift 4.2
  • SnapKit 设置约束
  • 密文显示,支持自定义密文样式
  • 支持下划线,边框等样式
  • 支持自动填充验证码(支持 iOS12 之后的版本)

安装

CocoaPod

pod 'TKIdentifyInputView' 

手动安装

将 TKIdentifyInputView 文件夹拖到项目中

使用方式

 let input = TKIdentifyInputView.init(frame: .zero)
 input.itemConfig = TKIdentifyInputItemConfig()
 view.addSubview(input)
 input.snp.makeConstraints {  (make) in
 	// 支持snapkit
  }
  // 设置layout或者itemConfig后请调用此方法
  input.reload()

详情请看 Demo

样式

类型 示例图片
下划线/underline underline
边框/border border
背景圆角/background & corner background
光标/cursor cursor
密文/security security
自定义密文/custom security custom_security
自定义大小、字体、字体大小/item size & font & text color custom

参考与感谢

CRBoxInputView