diff --git a/Sources/Lifecycle/Lifecycle.swift b/Sources/Lifecycle/Lifecycle.swift index ce2176a..5d00351 100644 --- a/Sources/Lifecycle/Lifecycle.swift +++ b/Sources/Lifecycle/Lifecycle.swift @@ -95,8 +95,8 @@ public struct LifecycleHandler { } } -#if compiler(>=5.5) && canImport(_Concurrency) -@available(macOS 12.0, *) +#if canImport(_Concurrency) && compiler(>=5.5.2) +@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) extension LifecycleHandler { public init(_ handler: @escaping () async throws -> Void) { self = LifecycleHandler { callback in @@ -159,8 +159,8 @@ public struct LifecycleStartHandler { } } -#if compiler(>=5.5) && canImport(_Concurrency) -@available(macOS 12.0, *) +#if canImport(_Concurrency) && compiler(>=5.5.2) +@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) extension LifecycleStartHandler { public init(_ handler: @escaping () async throws -> State) { self = LifecycleStartHandler { callback in @@ -221,8 +221,8 @@ public struct LifecycleShutdownHandler { } } -#if compiler(>=5.5) && canImport(_Concurrency) -@available(macOS 12.0, *) +#if canImport(_Concurrency) && compiler(>=5.5.2) +@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) extension LifecycleShutdownHandler { public init(_ handler: @escaping (State) async throws -> Void) { self = LifecycleShutdownHandler { state, callback in