Last active
February 10, 2019 23:23
-
-
Save yfujiki/84b177216b1b83f1be2fe395464b1ee0 to your computer and use it in GitHub Desktop.
Naive UILabel Extension to change font globally
This file contains hidden or 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
extension UILabel { | |
@objc var substituteFontName: String { | |
get { | |
return font.fontName | |
} | |
set { | |
font = UIFont(name: newValue, size: font.pointSize) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment