Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit 9ae792a

Browse files
author
Mitsuyoshi Yamazaki
committed
Add comments
1 parent bb3426e commit 9ae792a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ScrollableTabControllerDemo/AppDelegate.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1717
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
1818

1919
window = UIWindow(frame: UIScreen.main.bounds)
20-
21-
let scrollableTabController = ScrollableTabController()
22-
2320
let storyboard = UIStoryboard.init(name: "Main", bundle: nil)
21+
22+
// Setup content ViewControllers
2423
let timelineViewController = storyboard.instantiateViewController(withIdentifier: "TimelineViewController") as! TimelineViewController
2524
timelineViewController.title = "Timeline"
2625
timelineViewController.cellIdentifier = .normal
@@ -31,6 +30,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3130

3231
let upperContentViewController = storyboard.instantiateViewController(withIdentifier: "ProfileViewController")
3332

33+
// Setup ScrollableTabController
34+
let scrollableTabController = ScrollableTabController()
3435
scrollableTabController.viewControllers = [ timelineViewController, imageTimelineViewController ]
3536
scrollableTabController.upperContentViewController = upperContentViewController
3637

0 commit comments

Comments
 (0)