Skip to content

Commit e6d929e

Browse files
committed
NotificationsViewController: Wiring tabBar Initialization
1 parent 673e77e commit e6d929e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

WooCommerce/Classes/ViewRelated/NotificationsViewController.swift

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,36 @@
11
import UIKit
2+
import Gridicons
23

34

45
// MARK: - NotificationsViewController
56
//
67
class NotificationsViewController: UIViewController {
78

9+
/// Main TableView.
10+
///
11+
@IBOutlet private var tableView: UITableView!
12+
13+
814
// MARK: - View Lifecycle
915

16+
required init?(coder aDecoder: NSCoder) {
17+
super.init(coder: aDecoder)
18+
setupTabBarItem()
19+
}
20+
1021
override func viewDidLoad() {
1122
super.viewDidLoad()
1223
view.backgroundColor = StyleManager.tableViewBackgroundColor
1324

1425
displayPlaceholder()
1526
}
1627

17-
override func viewDidAppear(_ animated: Bool) {
18-
super.viewDidAppear(animated)
28+
29+
/// Setup: TabBar
30+
///
31+
func setupTabBarItem() {
32+
tabBarItem.title = NSLocalizedString("Notifications", comment: "Notifications tab title")
33+
tabBarItem.image = Gridicon.iconOfType(.statsAlt)
1934
}
2035

2136
/// Displays the Empty State Overlay.

0 commit comments

Comments
 (0)