-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example using UISearchController to show autocompleted results #137
Comments
+1 this would be very helpful. I'm not an experienced iOS developer and want to use Mapbox for a new Swift project. The lack of documentation around this specific interaction is making me fallback to MapKit rather than Mapbox, which has a fair amount of documentation (both official and unofficial) around this. |
Putting this example in mapbox/ios-sdk-examples#17 would give it more visibility (i.e., on this examples site). |
Please wherever do it because there is no clear way to do that. |
Is this feature still not implemented? I already created an app on the Android side and currently converting it to iOS only to find out a key feature such as this isn't really documented and seems to be pushed aside constantly. |
This library already provides much of the functionality needed to implement an autocompleting search UI; this ticket only tracks adding an example of doing so. Compared to Android, it’s more straightforward on iOS to set up a standard search UI, and you’d benefit from all the UI customization hooks that would be available as a result. The steps look something like this:
This Apple example shows how to do it using MapKit, but the types and principles are similar when using MapboxGeocoder.swift. Hope this gives you a decent starting point! |
An example of how to use MapboxGeocoder.swift's autocomplete functionality with a
UISearchController
would be particularly useful.The text was updated successfully, but these errors were encountered: