Skip to content

Commit 9d54d4e

Browse files
committed
Fix Mac availability annotations.
1 parent e9a2071 commit 9d54d4e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Sources/ComposableArchitecture/SwiftUI/ActionSheet.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ import SwiftUI
101101
///
102102
@available(iOS 13, *)
103103
@available(macCatalyst 13, *)
104-
@available(macOS, unavailable)
104+
@available(macOS 10.15, *)
105105
@available(tvOS 13, *)
106106
@available(watchOS 6, *)
107107
public struct ActionSheetState<Action> {
@@ -124,21 +124,21 @@ public struct ActionSheetState<Action> {
124124

125125
@available(iOS 13, *)
126126
@available(macCatalyst 13, *)
127-
@available(macOS, unavailable)
127+
@available(macOS 10.15, *)
128128
@available(tvOS 13, *)
129129
@available(watchOS 6, *)
130130
extension ActionSheetState: Equatable where Action: Equatable {}
131131

132132
@available(iOS 13, *)
133133
@available(macCatalyst 13, *)
134-
@available(macOS, unavailable)
134+
@available(macOS 10.15, *)
135135
@available(tvOS 13, *)
136136
@available(watchOS 6, *)
137137
extension ActionSheetState: Hashable where Action: Hashable {}
138138

139139
@available(iOS 13, *)
140140
@available(macCatalyst 13, *)
141-
@available(macOS, unavailable)
141+
@available(macOS 10.15, *)
142142
@available(tvOS 13, *)
143143
@available(watchOS 6, *)
144144
extension ActionSheetState: Identifiable where Action: Hashable {
@@ -147,7 +147,7 @@ extension ActionSheetState: Identifiable where Action: Hashable {
147147

148148
@available(iOS 13, *)
149149
@available(macCatalyst 13, *)
150-
@available(macOS, unavailable)
150+
@available(macOS 10.15, *)
151151
@available(tvOS 13, *)
152152
@available(watchOS 6, *)
153153
extension View {
@@ -183,10 +183,11 @@ extension View {
183183

184184
@available(iOS 13, *)
185185
@available(macCatalyst 13, *)
186-
@available(macOS, unavailable)
186+
@available(macOS 10.15, *)
187187
@available(tvOS 13, *)
188188
@available(watchOS 6, *)
189189
extension ActionSheetState {
190+
@available(macOS, unavailable)
190191
fileprivate func toSwiftUI(send: @escaping (Action) -> Void) -> SwiftUI.ActionSheet {
191192
SwiftUI.ActionSheet(
192193
title: Text(self.title),

0 commit comments

Comments
 (0)