Skip to content

Commit

Permalink
try new iOS 10 feature, seems buggy to me
Browse files Browse the repository at this point in the history
  • Loading branch information
mattneub committed Oct 30, 2016
1 parent 175b4e4 commit 67c55d1
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -33,6 +33,10 @@ class AppDelegate : UIResponder, UIApplicationDelegate {

self.window!.tintColor = .red // prove that bar item tint color is inherited

UITabBar.appearance().unselectedItemTintColor = .black // new in iOS 10
// interesting: this seems to override my title text attributes for .normal


UITabBarItem.appearance().setTitleTextAttributes([
NSFontAttributeName:UIFont(name:"Avenir-Heavy", size:14)!,
NSForegroundColorAttributeName:UIColor.green
Expand Down Expand Up @@ -63,6 +67,7 @@ class AppDelegate : UIResponder, UIApplicationDelegate {
UITabBar.appearance().selectionIndicatorImage = im



return true
}

Expand Down

0 comments on commit 67c55d1

Please sign in to comment.