SwiftyCodeView 0.3.6

SwiftyCodeView 0.3.6

[arturdev] 维护。



  • arturdev

SwiftyCodeView

Version License Platform

SwiftyCodeView 是一个优雅且可定制的 UI 组件,可以用作验证码、密码等...的输入字段。

使用方法

将 UIView 对象拖入 Storyboard,并将它的类设置为 SwiftCodeView。
实现 SwiftyCodeViewDelegate 协议。
大功告成!

extension ViewController: SwiftyCodeViewDelegate {
    func codeView(sender: SwiftyCodeView, didFinishInput code: String) {
        print("Entered code: ", code)
    }
}

自定义

您可以自定义的内容 - 一切!(查看示例项目)

要求

iOS >= 9.3
Xcode >= 9.0

安装

SwiftyCodeView 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'SwiftyCodeView'

# or 

pod 'SwiftyCodeView/RxSwift'

作者

arturdev, [email protected]

欢迎提出问题、功能请求以及指出错误和错误之处!

许可证

SwiftyCodeView遵从MIT许可证。查看LICENSE文件获取更多信息。