Skip to content

Instantly share code, notes, and snippets.

@VB10
Created October 11, 2020 15:00
Show Gist options
  • Save VB10/18443c5b5dad7b88e75c94835aec9c26 to your computer and use it in GitHub Desktop.
Save VB10/18443c5b5dad7b88e75c94835aec9c26 to your computer and use it in GitHub Desktop.
final class HomeRouterOutput: Routerable {
private(set) weak var view: Viewable!
init(_ view: Viewable) {
self.view = view
}
func navigateToDetail(httpCat: Cat) {
let detailEntitites = DetailEntites(entryEntity: DetailEntity(title: "Detail", heroKey: "hero"))
detailEntitites.catItem = httpCat
DetailRouterInput().push(from: view, entryEntity: detailEntitites)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment