Skip to content

Commit

Permalink
Fix fontStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Nov 3, 2024
1 parent a6028de commit 924c5fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Sources/OversizeUI/Core/Typography.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public struct Typography: ViewModifier {
case .headline: return 16
case .subheadline: return 20
case .body, .callout, .footnote, .caption, .caption2: return 16
@unknown default: return 16
default: return 16
}
}
#else
Expand All @@ -63,10 +63,9 @@ public struct Typography: ViewModifier {
case .title3, .headline: return 24
case .subheadline, .body: return 20
case .callout, .footnote, .caption, .caption2: return 16
@unknown default: return 16
default: return 16
}
}

#endif

private var fontDesign: Font.Design {
Expand All @@ -77,7 +76,7 @@ public struct Typography: ViewModifier {
return theme.fontParagraph.system
case .caption, .caption2, .footnote, .callout:
return theme.fontOverline.system
@unknown default:
default:
return .default
}
}
Expand Down

0 comments on commit 924c5fb

Please sign in to comment.