Forked from christianklotz/ios-default-fontsize-table.swift
Created
October 15, 2023 11:52
-
-
Save cute/54e02001ea7563e9cf2b3eea1da6f6ff to your computer and use it in GitHub Desktop.
List of default font sizes for dynamic type
This file contains 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 defaultFontSizeTable = [ | |
UIFontTextStyleHeadline: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 26, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 25, | |
UIContentSizeCategoryAccessibilityExtraLarge: 24, | |
UIContentSizeCategoryAccessibilityLarge: 24, | |
UIContentSizeCategoryAccessibilityMedium: 23, | |
UIContentSizeCategoryExtraExtraExtraLarge: 23, | |
UIContentSizeCategoryExtraExtraLarge: 22, | |
UIContentSizeCategoryExtraLarge: 21, | |
UIContentSizeCategoryLarge: 20, | |
UIContentSizeCategoryMedium: 19, | |
UIContentSizeCategorySmall: 18, | |
UIContentSizeCategoryExtraSmall: 17 | |
], | |
UIFontTextStyleSubheadline: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 24, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 23, | |
UIContentSizeCategoryAccessibilityExtraLarge: 22, | |
UIContentSizeCategoryAccessibilityLarge: 22, | |
UIContentSizeCategoryAccessibilityMedium: 21, | |
UIContentSizeCategoryExtraExtraExtraLarge: 21, | |
UIContentSizeCategoryExtraExtraLarge: 20, | |
UIContentSizeCategoryExtraLarge: 19, | |
UIContentSizeCategoryLarge: 18, | |
UIContentSizeCategoryMedium: 17, | |
UIContentSizeCategorySmall: 16, | |
UIContentSizeCategoryExtraSmall: 15 | |
], | |
UIFontTextStyleBody: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 21, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 20, | |
UIContentSizeCategoryAccessibilityExtraLarge: 19, | |
UIContentSizeCategoryAccessibilityLarge: 19, | |
UIContentSizeCategoryAccessibilityMedium: 18, | |
UIContentSizeCategoryExtraExtraExtraLarge: 18, | |
UIContentSizeCategoryExtraExtraLarge: 17, | |
UIContentSizeCategoryExtraLarge: 16, | |
UIContentSizeCategoryLarge: 15, | |
UIContentSizeCategoryMedium: 14, | |
UIContentSizeCategorySmall: 13, | |
UIContentSizeCategoryExtraSmall: 12 | |
], | |
UIFontTextStyleCaption1: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 19, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 18, | |
UIContentSizeCategoryAccessibilityExtraLarge: 17, | |
UIContentSizeCategoryAccessibilityLarge: 17, | |
UIContentSizeCategoryAccessibilityMedium: 16, | |
UIContentSizeCategoryExtraExtraExtraLarge: 16, | |
UIContentSizeCategoryExtraExtraLarge: 16, | |
UIContentSizeCategoryExtraLarge: 15, | |
UIContentSizeCategoryLarge: 14, | |
UIContentSizeCategoryMedium: 13, | |
UIContentSizeCategorySmall: 12, | |
UIContentSizeCategoryExtraSmall: 12 | |
], | |
UIFontTextStyleCaption2: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 18, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 17, | |
UIContentSizeCategoryAccessibilityExtraLarge: 16, | |
UIContentSizeCategoryAccessibilityLarge: 16, | |
UIContentSizeCategoryAccessibilityMedium: 15, | |
UIContentSizeCategoryExtraExtraExtraLarge: 15, | |
UIContentSizeCategoryExtraExtraLarge: 14, | |
UIContentSizeCategoryExtraLarge: 14, | |
UIContentSizeCategoryLarge: 13, | |
UIContentSizeCategoryMedium: 12, | |
UIContentSizeCategorySmall: 12, | |
UIContentSizeCategoryExtraSmall: 11 | |
], | |
UIFontTextStyleFootnote: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 16, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 15, | |
UIContentSizeCategoryAccessibilityExtraLarge: 14, | |
UIContentSizeCategoryAccessibilityLarge: 14, | |
UIContentSizeCategoryAccessibilityMedium: 13, | |
UIContentSizeCategoryExtraExtraExtraLarge: 13, | |
UIContentSizeCategoryExtraExtraLarge: 12, | |
UIContentSizeCategoryExtraLarge: 12, | |
UIContentSizeCategoryLarge: 11, | |
UIContentSizeCategoryMedium: 11, | |
UIContentSizeCategorySmall: 10, | |
UIContentSizeCategoryExtraSmall: 10 | |
], | |
UIFontTextStyleTitle1: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 36, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 36, | |
UIContentSizeCategoryAccessibilityExtraLarge: 35, | |
UIContentSizeCategoryAccessibilityLarge: 35, | |
UIContentSizeCategoryAccessibilityMedium: 34, | |
UIContentSizeCategoryExtraExtraExtraLarge: 34, | |
UIContentSizeCategoryExtraExtraLarge: 32, | |
UIContentSizeCategoryExtraLarge: 30, | |
UIContentSizeCategoryLarge: 28, | |
UIContentSizeCategoryMedium: 27, | |
UIContentSizeCategorySmall: 26, | |
UIContentSizeCategoryExtraSmall: 25 | |
], | |
UIFontTextStyleTitle2: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 31, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 30, | |
UIContentSizeCategoryAccessibilityExtraLarge: 29, | |
UIContentSizeCategoryAccessibilityLarge: 29, | |
UIContentSizeCategoryAccessibilityMedium: 28, | |
UIContentSizeCategoryExtraExtraExtraLarge: 28, | |
UIContentSizeCategoryExtraExtraLarge: 26, | |
UIContentSizeCategoryExtraLarge: 24, | |
UIContentSizeCategoryLarge: 22, | |
UIContentSizeCategoryMedium: 21, | |
UIContentSizeCategorySmall: 20, | |
UIContentSizeCategoryExtraSmall: 19 | |
], | |
UIFontTextStyleTitle3: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 29, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 28, | |
UIContentSizeCategoryAccessibilityExtraLarge: 27, | |
UIContentSizeCategoryAccessibilityLarge: 27, | |
UIContentSizeCategoryAccessibilityMedium: 26, | |
UIContentSizeCategoryExtraExtraExtraLarge: 26, | |
UIContentSizeCategoryExtraExtraLarge: 24, | |
UIContentSizeCategoryExtraLarge: 22, | |
UIContentSizeCategoryLarge: 20, | |
UIContentSizeCategoryMedium: 19, | |
UIContentSizeCategorySmall: 18, | |
UIContentSizeCategoryExtraSmall: 17 | |
], | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment