Skip to content

Commit 39545fe

Browse files
committed
Fixes for FontDescription size
1 parent 6ba5920 commit 39545fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftRichString/Attributes/FontConvertible.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extension Font: FontConvertible {
6060
#if os(tvOS)
6161
return Font(name: self.fontName, size: (size ?? TVOS_SYSTEMFONT_SIZE))!
6262
#elseif os(iOS)
63-
return Font(name: self.fontName, size: (size ?? TVOS_SYSTEMFONT_SIZE))!
63+
return Font(name: self.fontName, size: (size ?? Font.systemFontSize))!
6464
#elseif os(watchOS)
6565
return Font(name: self.fontName, size: (size ?? WATCHOS_SYSTEMFONT_SIZE))!
6666
#elseif os(macOS)

0 commit comments

Comments
 (0)