Code Monkey home page Code Monkey logo

tweetextfield's Introduction

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

  • 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

Requirements

  • iOS 9.0+
  • Xcode 9.0+
  • Swift 4.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

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

  • 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 ;]

License

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

tweetextfield's People

Contributors

oleghnidets avatar hb-dikshita avatar praveen3344 avatar dikshita-hb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.