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...
SwiftUI Charts

Build custom charts with SwiftUI Styles      

SwiftUICharts

A simple line and bar charting library that support accessibility written using SwiftUI.

Swipeable cards

Swipeable Cards with SwiftUI

RGStack

This UI attempts to capture the Quibi Card Stack and the associated User Interaction.

🃏 CardStack

A easy-to-use SwiftUI view for Tinder like cards on iOS, macOS & watchOS.