Created
October 11, 2020 15:00
-
-
Save VB10/18443c5b5dad7b88e75c94835aec9c26 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
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