Latest 1.1.0
Homepage https://github.com/StoneStoneStoneWang/WLTextField
License MIT
Platforms ios 9.0
Dependencies WLToolsKit
Frameworks UIKit, Foundation
Authors

依托于MXThenAction 本想使用响应式 链式语法但是发现链式有链式的好 非链式有非链式的好

pod ‘WLTextField’

    fileprivate final let tf = WLBaseTextField(frame: CGRect(x: 0, y: 100, width: 400, height: 44))

    view.addSubview(tf)

    tf.makeAttribute { (make) in

        make.set_maxLength(11)

        make.set_editType(.phone)

        make.set_textChanged({ (tf) in

            printLog(message: tf.text)
        })

        make.set_textColor(WLHEXCOLOR(hexColor: "#555555"))

        make.set_backgroundColor(WLHEXCOLOR(hexColor: "#eeeeee"))
    }

Latest podspec

{
    "name": "WLTextField",
    "version": "1.1.0",
    "summary": "A Lib For TF.",
    "description": "TSTFKit_Swift u6587u672cu6846u7684u5de5u5177u7c7b u57fau4e8e MXThenAction UIColor",
    "homepage": "https://github.com/StoneStoneStoneWang/WLTextField",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "StoneStoneStoneWang": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_versions": "5",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "source": {
        "git": "https://github.com/StoneStoneStoneWang/WLTextField.git",
        "tag": "1.1.0"
    },
    "source_files": "Code/**/*.{swift}",
    "dependencies": {
        "WLToolsKit": []
    }
}

Pin It on Pinterest

Share This