Skip to content

Commit 21d183e

Browse files
committed
Fix watchOS build
1 parent 8a55f63 commit 21d183e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/BuddyPlatform/SwiftUI/PlatformViewControllerWrapper.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !os(watchOS)
2+
13
import SwiftUI
24

35
/// Generic wrapper for a platform view controller to be embedded in a SwiftUI view hierarchy.
@@ -84,3 +86,5 @@ final class _WrappedViewControllerTest: PlatformViewController {
8486
}
8587

8688
#endif
89+
90+
#endif

Sources/BuddyPlatform/SwiftUI/PlatformViewWrapper.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !os(watchOS)
2+
13
import SwiftUI
24

35
/// Generic wrapper for a platform view to be embedded in a SwiftUI view hierarchy.
@@ -97,3 +99,5 @@ final class _WrappedViewTest: PlatformView {
9799
}
98100

99101
#endif
102+
103+
#endif

0 commit comments

Comments
 (0)