Setup global appearance of custom font in your whole app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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