Skip to content
Lightweight set of text fields with nice animation and functionality. πŸš€ Inspired by
Branch: master
Clone or download
Oleg Gnidets
Oleg Gnidets Fix #21. AutoLayout crashes in the recent commits.
Update documentation.
Latest commit 11ce661 Nov 5, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources Fix #21. AutoLayout crashes in the recent commits. Nov 5, 2018
TweeTextField-iOS Shared TweeTextField framework target. Mar 2, 2018
TweeTextField.xcodeproj Fix #21. AutoLayout crashes in the recent commits. Nov 5, 2018
TweeTextField Fix #21. AutoLayout crashes in the recent commits. Nov 5, 2018
.gitignore Initial commit Dec 21, 2017
.jazzy.yaml Add jazzy docs. Jan 5, 2018
.swift-version Update .swift-version file. Oct 2, 2018
LICENSE Add CI status. Mar 2, 2018


Swift Version Build Platform Documentation Pod Carthage License

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



  • Customizable placeholder
  • Customizable label under text field
  • Customizable via Attributes Inspector
  • Nice animation for placeholder
  • Nice animation for bottom line
  • No UITextField behaviours override
  • Clean code with divided functionalities
  • Easy to use and extend
  • Right-to-Left support
  • Complete documentation and support


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



To integrate TweeTextField into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'TweeTextField'

Then run pod install to integrate the library in your project.


To integrate TweeTextField into your Xcode project using Carthage, specify it in your Cartfile:

github "oleghnidets/TweeTextField"

Run carthage update to build the framework and drag the built TweeTextField.framework into your Xcode project. More info you can find on official page.


  1. Download the code.
  2. Drag and drop sources in your project.
  3. Import the library in code by import TweeTextField.


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



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

You can’t perform that action at this time.