https://github.com/cnkcq/awsometextfield
A elegant textField
https://github.com/cnkcq/awsometextfield
library swift
Last synced: about 1 month ago
JSON representation
A elegant textField
- Host: GitHub
- URL: https://github.com/cnkcq/awsometextfield
- Owner: CNKCQ
- License: apache-2.0
- Created: 2016-11-06T13:06:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-25T01:24:08.000Z (over 9 years ago)
- Last Synced: 2025-12-13T22:23:42.829Z (7 months ago)
- Topics: library, swift
- Language: Swift
- Homepage:
- Size: 43 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AwsomeTextField
[](https://travis-ci.org/kishikawakatsumi/IDCardKeyboard)
[](http://cocoadocs.org/docsets/IDCardKeyboard)
[](http://cocoadocs.org/docsets/IDCardKeyboard)
A elegant textField
##### :eyes: See also:
)
### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ gem install cocoapods
```
> CocoaPods 0.39.0+ is required to build IDCardKeyboard 3.0.0+.
To integrate IDCardKeyboard into your Xcode project using CocoaPods, specify it in your `Podfile`:
Swift 3.0:
```ruby
pod 'AwsomeTextField'
```
Then, run the following command:
```bash
$ pod install
```
## :book: Usage
Just like the traditional UITextFied
``` bash
let field = AwsomeTextField(frame: CGRect(x: 60, y: 200, width: 320, height: 44))
field.placeholder = "手机号"
view.addSubview(field)
```
:key: Basics Swift 3.0