Skip to content

Instantly share code, notes, and snippets.

@AppleCEO
Created June 13, 2019 08:58
Show Gist options
  • Select an option

  • Save AppleCEO/4f852f7b4e6cf9f7d0a3c094be6fd8e1 to your computer and use it in GitHub Desktop.

Select an option

Save AppleCEO/4f852f7b4e6cf9f7d0a3c094be6fd8e1 to your computer and use it in GitHub Desktop.
label fontSize change
let fontSize = UIFont.boldSystemFont(ofSize: 60)
attributedString.addAttribute(kCTFontAttributeName as NSAttributedString.Key, value: fontSize, range: NSRange(location: 0, length: 3))
let descriptionFontSize = UIFont.boldSystemFont(ofSize: 40)
descriptionAttributedString.addAttribute(kCTFontAttributeName as NSAttributedString.Key, value: descriptionFontSize, range: NSRange(location: 0, length: 5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment