Skip to content

Commit 1836195

Browse files
committed
Make useSharedLabelForSizing public
1 parent 289eb14 commit 1836195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/UIComponent/Components/View/Text.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private let layoutLabel = UILabel()
3636
/// It also supports the new swift `AttributedString` from iOS 15 for more complex styling.
3737
public struct Text: Component {
3838
/// A flag to determine if a shared UILabel should be used for sizing.
39-
static var useSharedLabelForSizing = true
39+
public static var useSharedLabelForSizing = true
4040

4141
/// Environment-injected font used when rendering plain strings.
4242
@Environment(\.font) var font

0 commit comments

Comments
 (0)