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...
CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...

HorizonSDK-iOS

Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...

LLSimpleCamera

LLSimpleCamera: A simple customizable camera - video recorder control LLSimpleCamera is a library for creating a customized camera - video ...

RSBarcodes_Swift

RSBarcodes allows you to read 1D and 2D barcodes using the metadata scanning capabilities introduced with iOS 7 and generate ...