Style | Font | Size |
---|---|---|
.extraLargeTitle | SFUI-Bold | 36.0 |
.extraLargeTitle2 | SFUI-Bold | 28.0 |
.largeTitle | SFUI-Regular | 34.0 |
.title1 | SFUI-Regular | 28.0 |
.title2 | SFUI-Regular | 22.0 |
.title3 | SFUI-Regular | 20.0 |
.headline | SFUI-Semibold | 17.0 |
.callout | SFUI-Regular | 16.0 |
.subheadline | SFUI-Regular | 15.0 |
.body | SFUI-Regular | 17.0 |
.footnote | SFUI-Regular | 13.0 |
.caption1 | SFUI-Regular | 12.0 |
.caption2 | SFUI-Regular | 11.0 |
Last active
April 24, 2025 07:18
-
Star
(313)
You must be signed in to star a gist -
Fork
(19)
You must be signed in to fork a gist
-
-
Save zacwest/916d31da5d03405809c4 to your computer and use it in GitHub Desktop.
iOS default font sizes - also available on https://www.iosfontsizes.com
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 styles: [UIFont.TextStyle] = [ | |
// iOS 17 | |
.extraLargeTitle, .extraLargeTitle2, | |
// iOS 11 | |
.largeTitle, | |
// iOS 9 | |
.title1, .title2, .title3, .callout, | |
// iOS 7 | |
.headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
] | |
for style in styles { | |
let font = UIFont.preferredFont(forTextStyle: style) | |
print("\(style): \(font.fontName) @ \(font.pointSize)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! bb