Skip to content

Commit c9eb944

Browse files
committed
Using button bar instead of line for clarity
1 parent ab0bc23 commit c9eb944

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

BrickHack-Mobile/Controllers/TabViewController.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ class TabViewController: TabmanViewController, PageboyViewControllerDataSource,
4040
self.reloadData()
4141

4242
// Create bar
43-
// @TODO: Dark Mode
44-
let bar = TMBar.LineBar()
45-
bar.layout.contentInset.top = 30.0
43+
let bar = TMBar.ButtonBar()
44+
// bar.layout.contentInset.top = 30.0
45+
bar.layout.interButtonSpacing = 20.0
46+
bar.layout.contentInset.left = 20.0
4647
bar.layout.transitionStyle = .progressive
4748
bar.indicator.cornerStyle = .rounded
4849
bar.indicator.tintColor = UIColor.init(named: "tabBarIndicatorColor")
@@ -52,9 +53,6 @@ class TabViewController: TabmanViewController, PageboyViewControllerDataSource,
5253
bar.backgroundView.style = .flat(color: .white)
5354
}
5455

55-
56-
57-
5856
// Add to view
5957
self.addBar(bar, dataSource: self, at: .top)
6058

@@ -80,7 +78,7 @@ class TabViewController: TabmanViewController, PageboyViewControllerDataSource,
8078
print("indexed at \(index)")
8179
if index == 0 {
8280
return TMBarItem(title: "Schedule")
83-
} else if index == 2 {
81+
} else if index == 1 {
8482
return TMBarItem(title: "Resources")
8583
} else {
8684
return TMBarItem(title: "Unknown")

0 commit comments

Comments
 (0)