Skip to content

Commit fe425a1

Browse files
committed
Limit async/await to Swift 5.5.2 (Xcode 13.2) (#923)
1 parent fca69cb commit fe425a1

File tree

5 files changed

+412
-422
lines changed

5 files changed

+412
-422
lines changed

Sources/ComposableArchitecture/SwiftUI/Alert.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public struct AlertState<Action> {
186186
case cancel
187187
case destructive
188188

189-
#if compiler(>=5.5) && canImport(_Concurrency)
189+
#if compiler(>=5.5)
190190
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)
191191
var toSwiftUI: SwiftUI.ButtonRole {
192192
switch self {
@@ -214,7 +214,7 @@ extension View {
214214
dismiss: Action
215215
) -> some View {
216216
WithViewStore(store, removeDuplicates: { $0?.id == $1?.id }) { viewStore in
217-
#if compiler(>=5.5) && canImport(_Concurrency)
217+
#if compiler(>=5.5)
218218
if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
219219
self.alert(
220220
(viewStore.state?.title).map { Text($0) } ?? Text(""),
@@ -356,7 +356,7 @@ extension AlertState.Button {
356356
}
357357
}
358358

359-
#if compiler(>=5.5) && canImport(_Concurrency)
359+
#if compiler(>=5.5)
360360
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)
361361
func toSwiftUIButton(send: @escaping (Action) -> Void) -> some View {
362362
SwiftUI.Button(
@@ -370,7 +370,7 @@ extension AlertState.Button {
370370
}
371371

372372
extension AlertState {
373-
#if compiler(>=5.5) && canImport(_Concurrency)
373+
#if compiler(>=5.5)
374374
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)
375375
@ViewBuilder
376376
fileprivate func toSwiftUIActions(send: @escaping (Action) -> Void) -> some View {

0 commit comments

Comments
 (0)