RSFloatInputView
  • October 23, 2023

Features


  • Smooth animation using CoreText
  • Support optional left icon
  • Support optional seperator
  • Configurable padding, size, fonts and colors
  • Ready for multi styles
  • Ready for string localization
  • Configurable in interface builder

Demo


Yotube Video Demo

Customization


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
RSFloatInputView.stringTransformer = {
orginal in
// Transform the place holder string configured in XIB with your own way.
// e.g return NSLocalizedString(orginal, comment: orginal)
return orginal.replacingOccurrences(of: “TXT_”, with: “”)
}
RSFloatInputView.instanceTransformer = {
instance in
// Support multi-styles in one place using the tag
if instance.tag == 0 {
instance.floatPlaceHolderColor = UIColor.brown
instance.textColor = UIColor.darkText
instance.tintColor = UIColor.brown
}
if instance.tag == 1 {
instance.floatPlaceHolderColor = UIColor.blue
instance.textColor = UIColor.darkText
instance.tintColor = UIColor.blue
}
}
return true
}

Requirements


  • iOS 8.0
  • Swift 4.1

Installation


RSFloatInputView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod “RSFloatInputView”

GitHub


View Github

#algolia #animation #awesemetextfield #carthage #cocoapods #coretext #currencytextfield #customtextfield #customwidgets #facetedsearch #floatinglabels #forms #geosearch #growingtextview #instantsearch #interfacebuilder #ios #ioslibrary #opensource #passwordtextfield #search #searchengine #searchinterface #searchsynonyms #styledtext #swift #swiftpackagemanager #textexpansion #textfield #texture #textview #tjtextfield #ui #uicomponents #uikit #uitextfield #uitextfieldnavigation #uitextview #widgets
YOU MIGHT ALSO LIKE...
SUBSONIC

SwiftUI+PathAnimations 🔵

Introduction This packages contains SimilarShape and InterpolatedShape, both can be used to achieve shapes animations with SwiftUI.

Shiny

Add motion-based texture to your SwiftUI views   Draw attention to important interface elements with .shiny(). Shiny uses your gyroscope to ...