From 63229c4c0d17f054cb7d7c7be7cfaf8865da42f3 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 6 Jan 2024 16:43:32 -0600 Subject: [PATCH] Change how we gate a couple classes --- VinUtility/Sources/VinUtility/ValidatingMenuToolbarItem.swift | 2 +- VinUtility/Sources/VinUtility/ValidatingToolbarItem.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VinUtility/Sources/VinUtility/ValidatingMenuToolbarItem.swift b/VinUtility/Sources/VinUtility/ValidatingMenuToolbarItem.swift index a0c46e25..63e17409 100644 --- a/VinUtility/Sources/VinUtility/ValidatingMenuToolbarItem.swift +++ b/VinUtility/Sources/VinUtility/ValidatingMenuToolbarItem.swift @@ -5,7 +5,7 @@ // Created by Maurice Parker on 11/3/21. // -#if canImport(UIKit) +#if targetEnvironment(macCatalyst) import UIKit diff --git a/VinUtility/Sources/VinUtility/ValidatingToolbarItem.swift b/VinUtility/Sources/VinUtility/ValidatingToolbarItem.swift index 896ada8e..910436ac 100644 --- a/VinUtility/Sources/VinUtility/ValidatingToolbarItem.swift +++ b/VinUtility/Sources/VinUtility/ValidatingToolbarItem.swift @@ -5,7 +5,7 @@ // Created by Maurice Parker on 11/13/20. // -#if canImport(UIKit) +#if targetEnvironment(macCatalyst) import UIKit public class ValidatingToolbarItem: NSToolbarItem {