Skip to content

Commit 2a987bc

Browse files
committed
added router func actions
1 parent af7f5e0 commit 2a987bc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ICTMDBAllListModule/AllListRouter.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
import UIKit
1010
import ICTMDBModularProtocols
1111
import DependencyKit
12+
import ICTMDBViewKit
1213

1314
class AllListRouter : PresenterToRouterAllListProtocol{
1415
func toDetail(view: PresenterToViewAllListProtocol?, id: Int?) {
15-
16+
let detailModule = DependencyRegister.shared.resolve(TvShowDetailProtocol.self)
17+
let controller = detailModule.createTvShowDetailModule(id: id)
18+
view?.pushViewControllerAble(controller, animated: true)
19+
1620
}
1721
}

0 commit comments

Comments
 (0)