Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITabBarItem Font Not working in iOS 8.3 #176

Open
cliftonlabrum opened this issue May 20, 2015 · 0 comments
Open

UITabBarItem Font Not working in iOS 8.3 #176

cliftonlabrum opened this issue May 20, 2015 · 0 comments

Comments

@cliftonlabrum
Copy link

--- blows dust off Pixate Freestyle --- ;)

Setting the font of a tab bar item no longer works in Pixate as of iOS 8.3 and Xcode 6.3:

tab-bar-item {
  color: #696D72;
  font-family: "Avenir Next";
  font-weight:600;
  font-size:12px;
}

This is likely caused by the fact that the UIFont has to be force unwrapped. Doing this with UIAppearance used to be this:

UITabBarItem.appearance().setTitleTextAttributes([NSFontAttributeName: UIFont(name: "AvenirNextCondensed-DemiBold", size:12)], forState:.Normal)

...but now must be this:

UITabBarItem.appearance().setTitleTextAttributes([NSFontAttributeName: UIFont(name: "AvenirNextCondensed-DemiBold", size:12)!], forState:.Normal)

Note the ! after UIFont(...) There's a chance this will start creeping up for all font usage in Pixate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant