Skip to content

Instantly share code, notes, and snippets.

@darjeelingsteve
Last active February 4, 2016 08:43
Show Gist options
  • Save darjeelingsteve/38e4e6ccbd9136c1526f to your computer and use it in GitHub Desktop.
Save darjeelingsteve/38e4e6ccbd9136c1526f to your computer and use it in GitHub Desktop.
func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool {
guard let userInfo = userActivity.userInfo, countyName = userInfo["CountyName"] as? String, selectedCounty = County.allCounties.filter({$0.name == countyName}).first else where userActivity.activityType == "com.darjeeling.counties.handoff.countydetails" {
return false
}
showCounty(selectedCounty)
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment