FloatingLabelTextFieldSwift is a small and lightweight UIKit framework written in Swift that allows to create beautiful and customisable floating label textfield.
- iOS 11.0+
- Xcode 12.5.1+
- Swift 5.0
To start using the component add it to your project using CocoaPods or Manually.
The UI component can be used via the FloatingLabelTextField
class. This control can be used very similar to UITextField
- both from Interface Builder of from code.
For details, see the Example project
To run the example project, clone the repo, and run pod install
from the Example directory first.
FloatingLabelTextFieldSwift is available through CocoaPods. CocoaPods can be installed using Ruby gems.
$ gem install cocoapods
Then simply add FloatingLabelTextFieldSwift
to your Podfile:
pod 'FloatingLabelTextFieldSwift', '~> 1.0.0'
Download the latest file and copy the FloatingLabelTextField.swift
file to your project.