Popularity
4.6
Growing
Activity
5.2
Growing
324
9
44

Description

Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/

Programming language: Swift
License: MIT License
Tags: UI     TextField & TextView    

TweeTextField alternatives and similar libraries

Based on the "TextField & TextView" category

Do you think we are missing an alternative of TweeTextField or a related project?

Add another 'TextField & TextView' Library

README

TweeTextField

Swift Version Build Platform Documentation Pod Carthage [License][license-url]

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

Preview

Features

  • [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 override of UITextField' behaviors
  • [x] Clean code with divided functionalities
  • [x] Easy to use and extend
  • [x] Right-to-Left support
  • [x] Complete documentation and support

Requirements

  • iOS 10.0+
  • Xcode 10.0+
  • Swift 5.0+

Installation

CocoaPods

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.

Carthage

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.

Manually

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

Usage

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:

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

Communication

License

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


*Note that all licence references and agreements mentioned in the TweeTextField README section above are relevant to that project's source code only.