Skip to content

Instantly share code, notes, and snippets.

@andrewxhill
Last active April 6, 2017 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewxhill/a6d52d798025f521616fe29c2924771f to your computer and use it in GitHub Desktop.
Save andrewxhill/a6d52d798025f521616fe29c2924771f to your computer and use it in GitHub Desktop.
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