Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. SkyFloatingLabelTextField

SkyFloatingLabelTextField

Apache-2.0Swift3.8.0

A customizable iOS text field control implementing the Float Label Pattern with icon support and RTL language compatibility.

GitHubGitHub
4.1k stars541 forks0 contributors

What is SkyFloatingLabelTextField?

SkyFloatingLabelTextField is an iOS text field component that implements the Float Label Pattern, where placeholder text animates into a title label above the input field. It solves the problem of cluttered forms by providing persistent context without occupying extra screen space, enhancing usability in data-entry screens. The component is highly customizable, supporting icons, error states, and RTL languages.

Target Audience

iOS developers building forms or data-entry interfaces in Swift or Objective-C who need a polished, space-efficient text input solution with extensive customization options.

Value Proposition

Developers choose it for its production-ready implementation of the Float Label Pattern, extensive customization capabilities, and built-in support for icons, validation states, and RTL languages—all while maintaining a simple API similar to UITextField.

Overview

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

Use Cases

Best For

  • Implementing the Float Label Pattern in iOS apps
  • Building custom-designed login or registration forms
  • Adding iconography to text fields for visual context
  • Creating forms with real-time validation and error display
  • Developing apps requiring RTL language support (e.g., Arabic, Hebrew)
  • Replacing standard UITextField with a more polished, animated alternative

Not Ideal For

  • Apps built exclusively with SwiftUI that prefer native components
  • Projects requiring complex form logic like dynamic field generation or multi-step wizards
  • Teams that prioritize minimal dependencies and stick to Apple's native UITextField for simplicity

Pros & Cons

Pros

Flexible Customization

Offers full control over colors, fonts, line heights, and states such as error and disabled, with examples in the README showing how to tweak properties like selectedLineColor for precise design matching.

Icon and RTL Support

Supports adding icons via custom fonts (e.g., FontAwesome) or images, and includes automatic right-to-left layout adjustment for languages like Arabic and Hebrew, enhancing internationalization.

Built-in Error Handling

Provides visual error states with customizable error messages, demonstrated in the README with real-time validation examples that highlight fields based on input conditions.

Extensible Architecture

Includes subclassing hooks for layout and color updates, such as overriding updateColors or titleLabelRectForBounds, allowing deep customization beyond standard properties.

Cons

Swift Version Fragmentation

Breaking changes between Swift versions (e.g., version 2.0 drops Swift 2.3 support) require careful version management, which can complicate migration and maintenance for older projects.

Icon Setup Complexity

Integrating icons necessitates handling custom fonts or images, with manual adjustments for properties like iconMarginBottom and iconRotationDegrees, adding development overhead for precise positioning.

UIKit-Only Limitation

Built for UIKit and lacks native SwiftUI support, restricting its use in modern iOS apps that adopt Apple's latest UI frameworks without additional wrapping code.

Frequently Asked Questions

Quick Stats

Stars4,130
Forks541
Contributors0
Open Issues71
Last commit9 months ago
CreatedSince 2015

Tags

#textfield#mobile-ui#ios#ui-components#interface-builder#form-input#cocoapods#swift#carthage#uikit

Built With

C
Carthage
U
UIKit
C
CocoaPods
S
Swift

Included in

iOS51.7kSwift26.0k
Auto-fetched 1 day 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,156
Forks722
Last commit3 years ago
TextFieldEffectsTextFieldEffects

Custom UITextFields effects inspired by Codrops, built using Swift

Stars6,017
Forks592
Last commit2 years ago
PYSearchPYSearch

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

Stars3,795
Forks741
Last commit5 years ago
Reel SearchReel Search

:octocat: 🔍 RAMReel is a UI controller that allows you to choose options from a list. Swift UI library made by @Ramotion

Stars2,516
Forks179
Last commit6 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