I can't figure out how to change the text size. I can change the font to .largeTitle but that's as big as the text will get.
Asked
Active
Viewed 45 times
0
-
Try this for UILabel: https://stackoverflow.com/a/24356906/14351818 – aheze Feb 08 '21 at 17:09
-
For SwiftUI's Text, try this: https://stackoverflow.com/a/56465243/14351818 – aheze Feb 08 '21 at 17:10
1 Answers
0
If you're using UIKit:
label.font = UIFont.systemFont(ofSize: 10, weight: .medium)
If you're using SwiftUI:
Text("something")
.font(.system(size: 10, weight: .light))

shayegh
- 302
- 1
- 9