An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# AwsomeTextField

[![CI Status](http://img.shields.io/travis/kishikawakatsumi/IDCardKeyboard.svg?style=flat)](https://travis-ci.org/kishikawakatsumi/IDCardKeyboard)
[![Version](https://img.shields.io/cocoapods/v/IDCardKeyboard.svg?style=flat)](http://cocoadocs.org/docsets/IDCardKeyboard)
[![Platform](https://img.shields.io/cocoapods/p/IDCardKeyboard.svg?style=flat)](http://cocoadocs.org/docsets/IDCardKeyboard)
A elegant textField
##### :eyes: See also:
![](https://cloud.githubusercontent.com/assets/8440220/20137814/c47c9966-a6b7-11e6-850d-03ee6fa42d00.gif))
### 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