Created
August 1, 2017 10:16
-
-
Save iAmrSalman/7e2ba4785888176cb5ad5e4ca5590005 to your computer and use it in GitHub Desktop.
[removeTabbaritemText] #swift3 #tabbar
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
extension UITabBarController { | |
func removeTabbarItemsText() { | |
tabBar.items?.forEach { | |
$0.title = "" | |
$0.imageInsets = UIEdgeInsets(top: 6, left: 0, bottom: -6, right: 0) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment