Created
June 13, 2019 08:58
-
-
Save AppleCEO/4f852f7b4e6cf9f7d0a3c094be6fd8e1 to your computer and use it in GitHub Desktop.
label fontSize change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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