TweeTextField

Swift Version License

This is lightweight library that provides different types of Text Fields based on your needs. I was inspired by Jan Henneberg.

Preview

Features

  • [x] Customized placeholder
  • [x] Info label under text field
  • [x] Nice animation for placeholder
  • [x] Nice animation for bottom line
  • [x] Customizable via Attributes Inspector
  • [x] Clean code with divided functionalities
  • [x] No UITextField behaviours override

Requirements

  • iOS 9.0+
  • Xcode 9.0+

Installation

CocoaPods

You can use CocoaPods to install TweeTextField by adding it to your Podfile:

pod 'TweeTextField'

To get the full benefits import TweeTextField wherever you import UIKit

Manually

  1. Download and drop Sources folder in your project.
  2. Congratulations!

Usage

Select one of the text fields provided based on your requirements. In general, you can use TweeAttributedTextField. It is a main class with aggregated functionalities of other text fields.

Look at class diagram:

Class-diagram

You can set up text field based on your preferences via Attributes Inspector. Also the library has some properties accessible for you. Check out sample project for more information.

Attributes Inspector

emailTextField.infoTextColor = .yellow
emailTextField.showInfo("Hello World!", animated: true)

usernameTextField.lineColor = .green
usernameTextField.lineWidth = 2

Communication

  • If you want to contribute, submit a pull request.
  • If you found a bug, have suggestions or need help, please, open an issue.
  • If you need help, write me oleg.oleksan@gmail.com.
  • If you want to donate I would be thankful ;]

paypal

License

Distributed under the MIT license. See LICENSE for more information.