Last active
April 6, 2017 17:02
-
-
Save andrewxhill/a6d52d798025f521616fe29c2924771f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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