Skip to content

Commit 57ad3aa

Browse files
committed
Fix watchOS build RE Menu
1 parent 0bb4027 commit 57ad3aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/LiveViewNative/BuiltinRegistry.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ struct BuiltinRegistry {
6464
#endif
6565
case "toggle":
6666
Toggle(element: element, context: context)
67+
#if !os(watchOS)
6768
case "menu":
6869
Menu(element: element, context: context)
70+
#endif
6971
case "slider":
7072
Slider(element: element, context: context)
7173
case "phx-form":

Sources/LiveViewNative/Views/Controls and Indicators/Menus/Menu.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// Created by Carson Katri on 1/19/23.
66
//
7-
7+
#if !os(watchOS)
88
import SwiftUI
99

1010
struct Menu<R: CustomRegistry>: View {
@@ -43,3 +43,4 @@ fileprivate extension View {
4343
}
4444
}
4545
}
46+
#endif

0 commit comments

Comments
 (0)