|
|
|
@ -185,9 +185,10 @@ class InCoordinator: Coordinator { |
|
|
|
|
private func hideTitlesInTabBarController(tabBarController: UITabBarController) { |
|
|
|
|
guard let items = tabBarController.tabBar.items else { return } |
|
|
|
|
for each in items { |
|
|
|
|
each.imageInsets = UIEdgeInsets(top: 6, left: 0, bottom: -6, right: 0) |
|
|
|
|
each.setTitleTextAttributes([.foregroundColor: UIColor.clear], for: .selected) |
|
|
|
|
each.setTitleTextAttributes([.foregroundColor: UIColor.clear], for: .normal) |
|
|
|
|
if UIDevice.current.userInterfaceIdiom == .phone { |
|
|
|
|
each.imageInsets = UIEdgeInsets(top: 6, left: 0, bottom: -6, right: 0) |
|
|
|
|
} |
|
|
|
|
each.title = "" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|