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...
PermissionsSwiftUI: A SwiftUI package to handle permissions

PermissionsSwiftUI displays and handles permissions in SwiftUI. It is largely inspired by SPPermissions. The UI is highly customizable and resembles an Apple style. ...

Pager tab strip view

Introduction PagerTabStripView is the first pager view built in pure SwiftUI. It provides a component to create interactive pager views ...

PageView

SwiftUI view enabling page-based navigation, imitating the behaviour of UIPageViewController in iOS.

Pages

    

How to take action when a property changes

1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...