Skip to content

Instantly share code, notes, and snippets.

@aronbalog
Last active July 26, 2019 19:27
Show Gist options
  • Save aronbalog/5a0d242217d40a6c70a5706e58619c2e to your computer and use it in GitHub Desktop.
Save aronbalog/5a0d242217d40a6c70a5706e58619c2e to your computer and use it in GitHub Desktop.
import CoreNavigation
// will fetch Person with personId
// and present PersonProfileViewController
// which will receive Person instance
// in didReceiveData(_:) method
Navigation.present { $0
.to(PersonProfile("sherlock_holmes"))
}
// or navigating immediately if you have `Person` instance available
let person: Person
Navigation.present { $0
.to(PersonProfileViewController.self)
.withData(person)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment