Skip to content

Instantly share code, notes, and snippets.

@KanshuYokoo
Created May 5, 2019 18:20
Show Gist options
  • Save KanshuYokoo/64b4ca38ea081fd6191fdf1c0615817e to your computer and use it in GitHub Desktop.
Save KanshuYokoo/64b4ca38ea081fd6191fdf1c0615817e to your computer and use it in GitHub Desktop.
swift ios, fit the font size of UILabel
textlabel.adjustsFontSizeToFitWidth = true
textlabel.minimumScaleFactor = 0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment