Mobile, Swift

Fixing Greyed tab icons with swift

To disable greyed tab bar icon and text in swift you can just do

self.tabBar.items?.forEach({ (item) -> () in
item.image = item.image?.imageWithRenderingMode(.AlwaysOriginal)
})
UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName : UIColor.blackColor()], forState: UIControlState.Normal)