File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Sources/ComposableArchitecture/SwiftUI Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -90,21 +90,25 @@ private struct NewConfirmationDialogModifier<Action>: ViewModifier {
90
90
}
91
91
92
92
@available ( iOS 13 , * )
93
- @available ( macOS, unavailable )
93
+ @available ( macOS 12 , * )
94
94
@available ( tvOS 13 , * )
95
95
@available ( watchOS 6 , * )
96
96
private struct OldConfirmationDialogModifier < Action> : ViewModifier {
97
97
@ObservedObject var viewStore : ViewStore < ConfirmationDialogState < Action > ? , Action >
98
98
let dismiss : Action
99
99
100
100
func body( content: Content ) -> some View {
101
- content. actionSheet ( item: viewStore. binding ( send: dismiss) ) {
102
- ActionSheet ( $0) { action in
103
- if let action = action {
104
- viewStore. send ( action)
101
+ #if !os(macOS)
102
+ content. actionSheet ( item: viewStore. binding ( send: dismiss) ) {
103
+ ActionSheet ( $0) { action in
104
+ if let action = action {
105
+ viewStore. send ( action)
106
+ }
105
107
}
106
108
}
107
- }
109
+ #else
110
+ EmptyView ( )
111
+ #endif
108
112
}
109
113
}
110
114
You can’t perform that action at this time.
0 commit comments