From bbfbda6e8d0ea401eab5e2d1e01c5bbdceb7d8b9 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Fri, 29 Mar 2024 08:55:16 -0400 Subject: [PATCH] Fix availability guard --- Sources/NSUI/Color.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/NSUI/Color.swift b/Sources/NSUI/Color.swift index ed56d51..6a21cb3 100644 --- a/Sources/NSUI/Color.swift +++ b/Sources/NSUI/Color.swift @@ -1,7 +1,7 @@ import SwiftUI extension Color { - @available(macOS 12.0, *) + @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) public init(nsuiColor: NSUIColor) { #if canImport(AppKit) && !targetEnvironment(macCatalyst) self.init(nsColor: nsuiColor)