This repository was archived by the owner on Oct 12, 2023. It is now read-only.
File tree 1 file changed +4
-3
lines changed
ScrollableTabControllerDemo
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
17
17
func application( _ application: UIApplication , didFinishLaunchingWithOptions launchOptions: [ UIApplicationLaunchOptionsKey : Any ] ? ) -> Bool {
18
18
19
19
window = UIWindow ( frame: UIScreen . main. bounds)
20
-
21
- let scrollableTabController = ScrollableTabController ( )
22
-
23
20
let storyboard = UIStoryboard . init ( name: " Main " , bundle: nil )
21
+
22
+ // Setup content ViewControllers
24
23
let timelineViewController = storyboard. instantiateViewController ( withIdentifier: " TimelineViewController " ) as! TimelineViewController
25
24
timelineViewController. title = " Timeline "
26
25
timelineViewController. cellIdentifier = . normal
@@ -31,6 +30,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
31
30
32
31
let upperContentViewController = storyboard. instantiateViewController ( withIdentifier: " ProfileViewController " )
33
32
33
+ // Setup ScrollableTabController
34
+ let scrollableTabController = ScrollableTabController ( )
34
35
scrollableTabController. viewControllers = [ timelineViewController, imageTimelineViewController ]
35
36
scrollableTabController. upperContentViewController = upperContentViewController
36
37
You can’t perform that action at this time.
0 commit comments