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
import Foundation | |
fileprivate let tabBarItemTag: Int = 10090 | |
extension UITabBar { | |
public func addItemBadge(atIndex index: Int) { | |
guard let itemCount = self.items?.count, itemCount > 0 else { | |
return |
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
/*The "right-left" rule is a completely regular rule for deciphering C | |
declarations. It can also be useful in creating them. | |
First, symbols. Read | |
* as "pointer to" - always on the left side | |
[] as "array of" - always on the right side | |
() as "function returning" - always on the right side | |
as you encounter them in the declaration. |