Skip to content

Instantly share code, notes, and snippets.

Created November 12, 2017 15:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Setup global appearance of custom font in your whole app.
func setupGlobalAppearance(){
//global Appearance settings
let customFont = UIFont.appRegularFontWith(size: 17)
UIBarButtonItem.appearance().setTitleTextAttributes([NSAttributedStringKey.font: customFont], for: .normal)
UITextField.appearance().substituteFontName = Constants.App.regularFont
UILabel.appearance().substituteFontName = Constants.App.regularFont
UILabel.appearance().substituteFontNameBold = Constants.App.boldFont
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment