Skip to content

Instantly share code, notes, and snippets.

Embed
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
You can’t perform that action at this time.