Skip to content

Commit f9095e5

Browse files
Changing HomePageCoordinator to have scrolling UIPageViewController
1 parent 4ea3698 commit f9095e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

XCoordinator-Example/Coordinators/HomePageCoordinator.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ class HomePageCoordinator: PageCoordinator<HomeRoute> {
2323
self.userListRouter = userListRouter
2424

2525
super.init(
26-
rootViewController: .init(),
27-
pages: [newsRouter, userListRouter], loop: true,
26+
rootViewController: .init(transitionStyle: .scroll,
27+
navigationOrientation: .horizontal,
28+
options: nil),
29+
pages: [userListRouter, newsRouter], loop: false,
2830
set: userListRouter, direction: .forward
2931
)
3032
}

0 commit comments

Comments
 (0)