Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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