A UITextField character counter with animated labels, haptic feedback, and easy setup for iOS apps.
TextFieldCounter is a Swift library that adds a character counter to UITextField with animated labels and haptic feedback. It solves the problem of implementing user-friendly text input limits in iOS apps by providing a visually appealing and interactive way to show remaining characters.
iOS developers building apps with text input fields that require character limits, such as forms, comment sections, or social media posts.
Developers choose TextFieldCounter for its lovable UX, easy integration via Interface Builder or code, and built-in animations and haptic feedback that enhance user interaction without requiring custom implementations.
UITextField character counter with lovable UX 💖. No math skills required 🙃.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
@IBInspectable properties allow configuration directly in Interface Builder, as shown in the inspector image, enabling visual setup without code.
Counter label animates smoothly between ascending or descending states, providing a polished visual cue for character limits that enhances user experience.
Built-in haptic feedback triggers when character limits are reached, adding tactile responses that improve interaction without extra implementation effort.
counterDelegate offers straightforward callbacks like didReachMaxLength, simplifying custom logic integration for limit events as demonstrated in the code examples.
It only works with UITextField, not UITextView, making it unsuitable for multi-line text input scenarios common in comments or notes.
Theming across multiple instances is challenging, as UIAppearance support is listed in Next Steps but not currently implemented, requiring manual styling.
Carthage support is missing and only CocoaPods or manual installation are available, which may not align with all team workflows or project setups.