Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. UITextField-Shake

UITextField-Shake

MITObjective-C1.1.2

A UITextField category that adds shake animations similar to macOS login screen password fields.

GitHubGitHub
727 stars92 forks0 contributors

What is UITextField-Shake?

UITextField-Shake is an iOS library that adds shake animation capabilities to UITextField components. It solves the need for visual feedback when users enter invalid input, providing a familiar shake effect similar to macOS password fields. The library offers customizable animation parameters and works with both Objective-C and Swift projects.

Target Audience

iOS developers building apps that require visual feedback for form validation, particularly those working with UITextField components in Objective-C or Swift projects.

Value Proposition

Developers choose UITextField-Shake because it provides a simple, focused solution for adding shake animations without requiring custom animation code. Its lightweight nature, easy integration via package managers, and compatibility with both major iOS languages make it a practical choice for enhancing user feedback.

Overview

UITextField category that adds shake animation

Use Cases

Best For

  • Adding visual feedback for invalid form input in iOS apps
  • Creating macOS-style password field animations in iOS applications
  • Enhancing user experience with subtle animation cues for validation errors
  • Quickly implementing shake animations without writing custom Core Animation code
  • Projects using both Objective-C and Swift that need consistent animation behavior
  • iOS apps requiring customizable animation parameters for different UI contexts

Not Ideal For

  • Projects exclusively using SwiftUI's TextField components
  • Apps requiring complex, multi-element animations beyond simple shakes
  • Teams that need integrated validation logic with visual feedback in a single package
  • Environments where adding external dependencies for minor UI effects is discouraged

Pros & Cons

Pros

Customizable Animation Parameters

Allows fine-tuning of shake count, delta, speed, and direction, as demonstrated in the code examples for both Objective-C and Swift.

Dual Language Support

Works seamlessly with Objective-C and Swift projects, providing example usage in both languages for easy integration.

Easy Package Integration

Available via CocoaPods and Carthage, simplifying setup and dependency management, as outlined in the README.

Completion Callbacks

Supports block-based completion handlers to execute code after animations finish, enhancing user experience flow, with examples in the documentation.

Cons

UITextField-Only Scope

Limited to UITextField components, making it unsuitable for animating other UI elements like buttons or labels, which restricts its utility.

No Validation Integration

Provides only the animation effect; developers must implement input validation logic separately, adding extra work beyond the library's scope.

Objective-C Heritage

Being an Objective-C category, it might not feel native in modern Swift-only projects, though compatibility is maintained, potentially leading to integration friction.

Frequently Asked Questions

Quick Stats

Stars727
Forks92
Contributors0
Open Issues0
Last commit8 years ago
CreatedSince 2014

Tags

#ios#uitextfield#animation#objective-c#ui-feedback#input-validation#cocoapods#swift#carthage#ios-ui

Built With

U
UIKit
O
Objective-C

Included in

iOS51.7k
Auto-fetched 19 hours ago

Related Projects

JVFloatLabeledTextFieldJVFloatLabeledTextField

UITextField subclass with floating labels - inspired by Matt D. Smith's design: http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users

Stars7,147
Forks719
Last commit3 years ago
TextFieldEffectsTextFieldEffects

Custom UITextFields effects inspired by Codrops, built using Swift

Stars6,011
Forks591
Last commit2 years ago
SkyFloatingLabelTextFieldSkyFloatingLabelTextField

A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.

Stars4,127
Forks540
Last commit1 year ago
PYSearchPYSearch

🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .

Stars3,778
Forks735
Last commit5 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub