IQDropDownTextField
  • October 19, 2023

TextField with DropDown support using UIPickerView

 

Installing


Install using cocoapods. Add in your Podfile:

pod ‘IQDropDownTextField’

Or below for Swift version

pod ‘IQDropDownTextFieldSwift’

How to Use


In IB (story boards or xibs) you can add UITextField‘s and set the class as IQDropDownTextField

Objective-C

Nothing more easy than it!

@implementation ViewController

– (void)viewDidLoad
{
[super viewDidLoad];

textFieldTextPicker.isOptionalDropDown = NO;
[textFieldTextPicker setItemList:[NSArray arrayWithObjects:@”London”,@”Johannesburg”,@”Moscow”,@”Mumbai”,@”Tokyo”,@”Sydney”, nil]];
}
@end

Swift

It’s very simple to setup your IQDropDownTextField. The sample below shows you how to:

import IQDropDownTextFieldSwift

class MyController : UIViewController {
@IBOutlet var occupationTextField: IQDropDownTextField!

override func viewDidLoad() {
occupationTextField.isOptionalDropDown = false
occupationTextField.itemList = [“programmer”, “teacher”, “engineer”]
}
}

And that’s all you need! =)

GitHub


View Github

#animation #awesemetextfield #carthage #cocoapods #currencytextfield #customtextfield #customwidgets #dropdown #facetedsearch #geosearch #growingtextview #instantsearch #interfacebuilder #ios #ioslibrary #iosswift #objectivec #opensource #passwordtextfield #placeholder #placeholdertextview #realmswift #search #searchengine #searchinterface #searchsynonyms #storyboard #styledtext #swift #swiftframework #swiftlibrary #swiftpackagemanager #swiftui #swiftuicomponents #text #textexpansion #textfield #texture #textview #tjtextfield #ui #uikit #uitextfield #uitextfieldnavigation #uitextview #uitextviewalgolia #widgets
YOU MIGHT ALSO LIKE...
ViewCondition

✨ Super sweet syntactic sugar for SwiftUI.View initializers. At a Glance

SwiftUIX

SwiftUIX attempts to fill the gaps of SwiftUI, providing an extensive suite of components, extensions and utilities to complement the ...

SwiftUI Environment Overrides

A tiny library that adds a control panel for testing how SwiftUI app adapts for different color themes, accessibility settings, ...