Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to show notification icon on tabbar item swift

if let tabItems = tabBarController?.tabBar.items {
    // In this case we want to modify the badge number of the third tab:
    let tabItem = tabItems[2]
    tabItem.badgeValue = "1"
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #notification #icon #tabbar #item #swift
ADD COMMENT
Topic
Name
3+5 =