File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66//
77
88import UIKit
9-
10- public class HomeRouter : PresenterToRouterHomeProtocol {
11-
9+ import ICTMDBModularProtocols
10+ import DependencyKit
11+ import ICTMDBViewKit
12+ public class HomeRouter : @preconcurrency PresenterToRouterHomeProtocol {
1213
13- func toAllListPage( view: PresenterToViewHomeProtocol ? , type: SectionType ) {
14-
14+ @MainActor func toAllListPage( view: PresenterToViewHomeProtocol ? , type: SectionType ) {
15+ let listType : AllListType = type == . popular ? . popular : . airingToday
16+ let allListModule = DependencyRegister . shared. resolve ( AllListModuleProtocol . self)
17+ let allListViewController = allListModule. createAllListModule ( type: listType)
18+ view? . pushViewControllerAble ( allListViewController, animated: true )
19+
1520 }
1621
17- func toDetailPage( view: ( any PresenterToViewHomeProtocol ) ? , id: Int ? ) {
18-
22+ @MainActor func toDetailPage( view: ( any PresenterToViewHomeProtocol ) ? , id: Int ? ) {
23+ let detailModule = DependencyRegister . shared. resolve ( TvShowDetailProtocol . self)
24+ let detailViewController = detailModule. createTvShowDetailModule ( id: id)
25+ view? . pushViewControllerAble ( detailViewController, animated: true )
1926 }
2027
21-
2228
2329}
You can’t perform that action at this time.
0 commit comments