Skip to content

Instantly share code, notes, and snippets.

@krummler
Created April 14, 2020 12:30
Show Gist options
  • Save krummler/20da73e158b7ff049efd41627906a68b to your computer and use it in GitHub Desktop.
Save krummler/20da73e158b7ff049efd41627906a68b to your computer and use it in GitHub Desktop.
let label = UILabel()
label.font = UIFont.preferredFont(forTextStyle: .caption1)
label.adjustsFontForContentSizeCategory = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment