MVAutocompletePlaceSearchTextField
  • October 19, 2023

iOS – Subclass of UITextField to achieve autocompletion for Place Search like Google Places, Uber and Much more apps having maps.

MVAutocompletePlaceSearchTextField is an extension (in actual case,Subclass) of a very popular Automcomplete Textfield class MLPAutoCompleteTextField.

MVAutocompletePlaceSearchTextField is Drop-in Solution to achieve functionalities like Autpcomplete Search with Drop-down list of all suggestions related to Textual Query entered by user.(Like Google Maps, Uber, etc.)

Storyboard support it there, so user have to just Give classname to any UITextField and Bind its ‘PlaceSearchTextFieldDelegate’ to Delegate class.

With very simple Delegate methods developer can easily integrate and exploit This control.

Requirement


Developer has to get an API Key from Google Api console for Google Places API Web Service.

EDIT: As per the latest updates, You will need to integrate GoogleMaps SDK. For that you may head out to Google iOS SDK Integration (Step 3)

How to Use?


  • Bind ‘MVPlaceSearchTextField’ as Class for UITextField in the Storyboard.
  • Also set its delegate named, placeSearchDelegate.
  • And set your API Key as value of Property “strApiKey” Create iOS Key to use it here from Google Console, for more info
  • Also add [GMSServices provideAPIKey:@”YOUR API KEY”]; in application:didFinishLaunchingWithOptions of AppDelegate.

or refer Step 4 from https://developers.google.com/places/ios-api/start#get-key

That’s it !!

Updated with New GoogleMaps SDK for iOS


Control is now updated to use with iOS API Keys (Earlier it was using NSURLConnection along with Browser key from Google APIs).Its now fully supported with Google’s standard classes like GMSPlace, so that it can be easily used along with Google Maps

GitHub


View Github

#animation #autocomplete #awesemetextfield #carthage #cocoapods #currencytextfield #customtextfield #customwidgets #delegate #facetedsearch #geosearch #growingtextview #instantsearch #interfacebuilder #ios #ioslibrary #iosswift #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...
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 ...