All Projects → serralvo → Textfieldcounter

serralvo / Textfieldcounter

Licence: mit
UITextField character counter with lovable UX 💖. No math skills required 🙃.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Textfieldcounter

Mmtextfieldeffects
Extension of TextFieldEffects with Custom UITextFields effects inspired by Codrops, built using Objective-C
Stars: ✭ 619 (+45.99%)
Mutual labels:  textfield, uitextfield
CurrencyText
Currency text field formatter available for UIKit and SwiftUI 💶✏️
Stars: ✭ 124 (-70.75%)
Mutual labels:  uitextfield, textfield
TextInputLayout
The objective of this code is to guide you to create login screen with TextInputLayout in iOS app.
Stars: ✭ 30 (-92.92%)
Mutual labels:  uitextfield, textfield
LycricsTextView
No description or website provided.
Stars: ✭ 14 (-96.7%)
Mutual labels:  uitextfield, textfield
Awesometextfieldswift
Awesome TextField is a nice and simple libriary for iOS and Mac OSX. It's highly customisable and easy-to-use tool. Works perfectly for any registration or login forms in your app.
Stars: ✭ 221 (-47.88%)
Mutual labels:  textfield, uitextfield
Autocompletefield
Subclass of UITextField that shows inline suggestions while typing.
Stars: ✭ 656 (+54.72%)
Mutual labels:  textfield, uitextfield
Alerts And Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
Stars: ✭ 5,267 (+1142.22%)
Mutual labels:  textfield, uitextfield
Underlinetextfield
Simple UITextfield Subclass with state
Stars: ✭ 156 (-63.21%)
Mutual labels:  textfield, uitextfield
Ragtextfield
Subclass of UITextField that adds an animated placeholder and an optional hint label below the text.
Stars: ✭ 227 (-46.46%)
Mutual labels:  textfield, uitextfield
Tweetextfield
Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/
Stars: ✭ 421 (-0.71%)
Mutual labels:  textfield, uitextfield
detectable text field
TextField and Text widget with detection features. You can detect hashtags, at sign, or anything you want.
Stars: ✭ 29 (-93.16%)
Mutual labels:  textfield
Uitextview Wzb
一个强大的UITextView分类,三大功能,让系统TextView自带placeholder属性、自动高度、支持输入图片
Stars: ✭ 259 (-38.92%)
Mutual labels:  textfield
CHRTextFieldFormatter
Provides UITextField formatting masks. Such as phone number and credit card number formatters.
Stars: ✭ 52 (-87.74%)
Mutual labels:  textfield
Passwordtextfield
A custom TextField with a switchable icon which shows or hides the password and enforce good password policies
Stars: ✭ 281 (-33.73%)
Mutual labels:  textfield
LMDFloatingLabelTextField
Customisable iOS TextField with floating placeholder
Stars: ✭ 23 (-94.58%)
Mutual labels:  textfield
Awesome Flutter Ui
10+ flutter(android, ios) UI design examples ⚡️ - login, books, profile, food order, movie streaming, walkthrough, widgets
Stars: ✭ 372 (-12.26%)
Mutual labels:  textfield
rich input
Rich input box, implement @Someone and subject with color highlighting
Stars: ✭ 58 (-86.32%)
Mutual labels:  textfield
Flagphonenumber
A formatted phone number UITextField with country flag picker.
Stars: ✭ 371 (-12.5%)
Mutual labels:  textfield
TTInputVisibilityController
Lightweight controller to keep your inputs visible when the keyboard is presented.
Stars: ✭ 21 (-95.05%)
Mutual labels:  textfield
Autocomplete
jQuery like auto complete for iOS UITextField
Stars: ✭ 36 (-91.51%)
Mutual labels:  uitextfield

TextFieldCounter

UITextField character counter with lovable UX 💖. No math skills required 🙃.

Swift Version License Build Status codecov CocoaPods

Features

  • [x] Set max length of UITextField.
  • [x] A beautiful and animated label about the limits. Show it by ascending or descending way.
  • [x] Haptic Feedback.
  • [x] Easy setup with @IBInspectable.

TextFieldCounter

Requirements

TextFieldCounter Version 1.1.0 1.0.4
iOS Version 10.0+ 8.0+
Xcode Version 11.2 8

Installation

CocoaPods

You can use CocoaPods to install TextFieldCounter by adding it to your Podfile:

platform :ios, '10.0'
use_frameworks!
pod 'TextFieldCounter'

To get the full benefits import TextFieldCounter wherever you import UIKit

import UIKit
import TextFieldCounter

Manually

  1. Download and drop TextFieldCounter.swift in your project.
  2. Congratulations 🚀

Usage example

By Inspector

  1. Set the class and configure the options.

Inspector

Programmatically

import TextFieldCounter

let frame = CGRect(x: 20, y: 80, width: 320, height: 30)
let textField = TextFieldCounter(frame: frame, limit: 20, animate: true, ascending: true, counterColor: .black, limitColor: .red)

view.addSubview(textField)
Use Delegate

Set counterDelegate and enjoy it 🚀:

override func viewDidLoad() {
    super.viewDidLoad()
    textField.counterDelegate = self
}

func didReachMaxLength(textField: TextFieldCounter) {
    print("didReachMaxLength")
}

Next Steps

  • Add UIAppearance support
  • Add More tests
  • Add Carthage support

Contribute

We would ❤️ to see your contribution! To contribute to TextFieldCounter, check the LICENSE file for more info.

License

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

About

Created by Fabricio Serralvo – serralvo.co

Special thanks 👍 to @ciceroduarte and @rogerluan

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