All Projects β†’ oleghnidets β†’ Tweetextfield

oleghnidets / Tweetextfield

Licence: mit
Lightweight set of text fields with nice animation and functionality. πŸš€ Inspired by https://uimovement.com/ui/2524/input-field-help/

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Tweetextfield

Statusalert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way.
Stars: ✭ 809 (+92.16%)
Mutual labels:  cocoapods, carthage, swift-package-manager, uikit
CurrencyText
Currency text field formatter available for UIKit and SwiftUI πŸ’ΆβœοΈ
Stars: ✭ 124 (-70.55%)
Mutual labels:  uikit, uitextfield, swift-package-manager, textfield
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+2442.99%)
Mutual labels:  cocoapods, carthage, swift-package-manager, uikit
Uitextfield Navigation
πŸ„β€β™‚οΈ UITextField-Navigation makes it easier to navigate between UITextFields and UITextViews
Stars: ✭ 436 (+3.56%)
Mutual labels:  cocoapods, carthage, interface-builder, uitextfield
Bfkit Swift
BFKit-Swift is a collection of useful classes, structs and extensions to develop Apps faster.
Stars: ✭ 963 (+128.74%)
Mutual labels:  cocoapods, carthage, swift-package-manager, uikit
Wstagsfield
An iOS text field that represents tags, hashtags, tokens in general.
Stars: ✭ 1,013 (+140.62%)
Mutual labels:  cocoapods, carthage, swift-package-manager, uitextfield
Underlinetextfield
Simple UITextfield Subclass with state
Stars: ✭ 156 (-62.95%)
Mutual labels:  cocoapods, carthage, textfield, uitextfield
Swipycell
Easy to use UITableViewCell implementing swiping to trigger actions.
Stars: ✭ 230 (-45.37%)
Mutual labels:  cocoapods, carthage, swift-package-manager
Alertift
Swifty, modern UIAlertController wrapper.
Stars: ✭ 242 (-42.52%)
Mutual labels:  cocoapods, carthage, uikit
Simplecheckbox
A simple Checkbox
Stars: ✭ 253 (-39.9%)
Mutual labels:  cocoapods, carthage, interface-builder
Swiftytexttable
A lightweight library for generating text tables.
Stars: ✭ 252 (-40.14%)
Mutual labels:  cocoapods, carthage, swift-package-manager
Amplitude Ios
Native iOS/tvOS/macOS SDK
Stars: ✭ 216 (-48.69%)
Mutual labels:  cocoapods, carthage, swift-package-manager
Aksidemenu
Beautiful iOS side menu library with parallax effect. Written in Swift
Stars: ✭ 216 (-48.69%)
Mutual labels:  cocoapods, carthage, swift-package-manager
Skyfloatinglabeltextfield
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
Stars: ✭ 3,907 (+828.03%)
Mutual labels:  cocoapods, interface-builder, textfield
L10n Swift
Localization of the application with ability to change language "on the fly" and support for plural form in any language.
Stars: ✭ 177 (-57.96%)
Mutual labels:  cocoapods, carthage, swift-package-manager
Multipeer
πŸ“±πŸ“² A wrapper for the MultipeerConnectivity framework for automatic offline data transmission between devices
Stars: ✭ 170 (-59.62%)
Mutual labels:  cocoapods, carthage, swift-package-manager
STTextView
πŸ“ STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (-91.45%)
Mutual labels:  carthage, uikit, interface-builder
Corestore
Unleashing the real power of Core Data with the elegance and safety of Swift
Stars: ✭ 3,254 (+672.92%)
Mutual labels:  cocoapods, carthage, swift-package-manager
Passwordtextfield
A custom TextField with a switchable icon which shows or hides the password and enforce good password policies
Stars: ✭ 281 (-33.25%)
Mutual labels:  cocoapods, carthage, textfield
Stepperview
SwiftUI iOS component for Step Indications.
Stars: ✭ 281 (-33.25%)
Mutual labels:  cocoapods, carthage, swift-package-manager

TweeTextField

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.

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 11.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.

Swift Package Manager

Adding TweeTextField to the dependencies value of your Package.swift file.

// swift-tools-version:5.0

import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/oleghnidets/TweeTextField.git", from: "1.6.1"),
    ]
)

Or you may use Xcode. File->Swift Packages->Add Package Dependency. Then put link to the repository.

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.infoAnimationDuration = 0.7
emailTextField.infoTextColor = .systemRed
emailTextField.infoFontSize = 13
        
emailTextField.activeLineColor = .systemBlue
emailTextField.activeLineWidth = 1
emailTextField.animationDuration = 0.3
        
emailTextField.lineColor = .lightGray
emailTextField.lineWidth = 1
        
emailTextField.minimumPlaceholderFontSize = 10
emailTextField.originalPlaceholderFontSize = 13
emailTextField.placeholderDuration = 0.3
emailTextField.placeholderColor = .systemGray2
emailTextField.tweePlaceholder = "Email address"
emailTextField.placeholderLabel.font = UIFont.preferredFont(forTextStyle: .largeTitle)

Communication

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].