Skip to content

Commit f9a02ab

Browse files
committed
Workaround non-Darwin platform build issue
Tracked with #39
1 parent d1c1da5 commit f9a02ab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/OpenSwiftUI/DataAndStorage/ModelData/DynamicProperty/DynamicProperty.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ extension DynamicProperty {
8787
}
8888
}
8989

90+
// FIXME: Compile crash on non-ObjectiveC platform
91+
// https://github.com/OpenSwiftUIProject/OpenSwiftUI/issues/39
92+
#if canImport(Darwin)
9093
extension BodyAccessor {
9194
func makeBody(
9295
container: _GraphValue<Container>,
@@ -234,3 +237,4 @@ extension DynamicBody: StatefulRule {
234237
// TODO
235238
}
236239
}
240+
#endif

Sources/OpenSwiftUI/Internal/Graph/GraphInputs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public struct _GraphInputs {
88
var transaction: Attribute<Transaction>
99
var changedDebugProperties: _ViewDebug.Properties
1010
var options: _GraphInputs.Options
11-
// FIXME: Compile crash on Linux
12-
// https://github.com/apple/swift/issues/71086
11+
// FIXME: Compile crash on non-Darwin platform
12+
// https://github.com/OpenSwiftUIProject/OpenSwiftUI/issues/39
1313
#if canImport(Darwin)
1414
var mergedInputs: Set<OGAttribute>
1515
#endif

0 commit comments

Comments
 (0)