Skip to content

Instantly share code, notes, and snippets.

@marinofelipe
Last active March 13, 2019 04:14
Show Gist options
  • Save marinofelipe/b065cbc959c59470e7d75ddfcf12aec0 to your computer and use it in GitHub Desktop.
Save marinofelipe/b065cbc959c59470e7d75ddfcf12aec0 to your computer and use it in GitHub Desktop.
Blog post / Dynamic Type - Setting a custom scalable font with max size to a label
label.font = UIFont.jurassicPark.regular.sized(40.0).scaled(forTextStyle: .body, maxSize: 80.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment