We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f80272e commit 0741d59Copy full SHA for 0741d59
1 file changed
Sources/SwiftCrossUI/Values/TextStyle.swift
@@ -49,6 +49,18 @@ extension Font.TextStyle {
49
emphasizedWeight: .semibold,
50
lineHeight: 16
51
)
52
+
53
+ public init(
54
+ pointSize: Double,
55
+ weight: Font.Weight = .regular,
56
+ emphasizedWeight: Font.Weight,
57
+ lineHeight: Double
58
+ ) {
59
+ self.pointSize = pointSize
60
+ self.weight = weight
61
+ self.emphasizedWeight = emphasizedWeight
62
+ self.lineHeight = lineHeight
63
+ }
64
}
65
66
/// Resolves the text style's concrete text properties for the given device
0 commit comments