Created
October 16, 2020 15:14
-
-
Save BetterProgramming/54b4bc0109ffe4427b74965633ad13c4 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
guard let font = UIFont(name: "Proxima Nova-Regular", size: 34) else { | |
fatalError("Can't find the custom font") | |
} | |
let fontMetrics = UIFontMetrics(forTextStyle: .largeTitle) | |
label.font = fontMetrics.scaledFont(for: font) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment