Latest 1.0.6
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit

Swift Version

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



  • [x] Customizable placeholder
  • [x] Customizable label under text field
  • [x] Customizable via Attributes Inspector
  • [x] Nice animation for placeholder
  • [x] Nice animation for bottom line
  • [x] No UITextField behaviours override
  • [x] Clean code with divided functionalities
  • [x] Easy to use and extend


  • iOS 9.0+
  • Xcode 9.0+
  • Swift 4.0+



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


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


Check out the documentation for more details.
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:


  • TweePlaceholderTextField has a customized placeholder label which has animations on the beginning and ending editing.
  • TweeBorderedTextField shows a bottom line permanently.
  • TweeActiveTextField shows animated bottom line when a user begins editing.
  • TweeAttributedTextField shows the custom info label under text field.

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


  • 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 [email protected]
  • If you want to give me some motivation ;]


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

Latest podspec

    "name": "TweeTextField",
    "version": "1.0.6",
    "summary": "Lightweight set of attributed text fields with nice animation",
    "description": "This is lightweight library that provides different types of Text Fields based on your needs. I was inspired by",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Oleg Hnidets": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.6"
    "platforms": {
        "ios": "9.0"
    "requires_arc": true,
    "source_files": "Sources/*.swift",
    "frameworks": "UIKit"

Pin It on Pinterest

Share This