native macOS codings agent orchestrator prowl.onev.cat
Something went wrong. Try again.
1234567891011121314151617181920212223import AppKitimport ComposableArchitectureimport Foundation
struct OpenURLClient { var open: @MainActor @Sendable (_ url: URL) -> Void}
extension OpenURLClient: DependencyKey { static let liveValue = OpenURLClient { url in NSWorkspace.shared.open(url) }
static let testValue = OpenURLClient { _ in }}
extension DependencyValues { var openURLClient: OpenURLClient { get { self[OpenURLClient.self] } set { self[OpenURLClient.self] = newValue } }}