Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class RideFinderViewController: UIViewController {
...
override func viewDidAppear(_ animated: Bool) {
// this view indicates an intent to go someplace
super.viewDidAppear(animated)
// Get the user's likely destinations using the SetSDK
// For custom control of starting location, see: http://bit.ly/getDestinationV1
let destinations = SetSDK.instance.getDestination()
// Populate destination suggestions from the SetSDK results
populateDestinationSuggestions(destinations: destinations)
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.