Skip to content

Commit 0593c1e

Browse files
committed
Fix build errors
1 parent c694a3d commit 0593c1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/GateEngine/Resources/Text/Text.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public final class Text {
114114
}
115115
}
116116

117+
@MainActor
117118
public init(
118119
string: String,
119120
font: Font = .default,
@@ -139,6 +140,7 @@ public final class Text {
139140
#else
140141
self.interfaceScale = 1
141142
#endif
143+
self._geometry = MutableGeometry(rawGeometry: nil)
142144
}
143145

144146
@MainActor private static func rawGeometry(

0 commit comments

Comments
 (0)