Created
June 17, 2019 18:57
-
-
Save konnnn/5b7cb4d216bcb0b430a389be4fe8bba4 to your computer and use it in GitHub Desktop.
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
// Created by Evgeny Konkin on 17.06.2019. | |
extension UIFont { | |
class func customRegularFont(size: CGFloat) -> UIFont { | |
return UIFont(name: "FontName", size: size) ?? UIFont.systemFont(ofSize: size, weight: UIFont.Weight.regular) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment