Created
September 1, 2019 21:47
-
-
Save MoussaHellal/2b55765ebeb091ff11cecafcb878c639 to your computer and use it in GitHub Desktop.
Add createObservers() function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
// add badge to my cart tab icon with value of zero | |
self.tabBar.items![0].badgeValue = "0" | |
createObservers() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment