Skip to content

Commit e3598c3

Browse files
committed
Fix Linux build issue
1 parent 963ce3c commit e3598c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/OpenSwiftUI/Core/View/ViewGraph.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,11 @@ final class ViewGraph: GraphHost {
181181
}
182182

183183
func setRootView<V: View>(_ view: V) {
184+
#if canImport(Darwin)
184185
@Attribute(identifier: rootView)
185186
var rootView: V
186187
rootView = view
188+
#endif
187189
}
188190

189191
// MARK: - Override Methods

0 commit comments

Comments
 (0)