Closed kirkbig closed 6 months ago
by placing #if canImport(UIKit) first, it means that building for #if targetEnvironment(macCatalyst) doesn't fail attempting to use and link in AppKit things (since macCatalyst apps can link both UIKit and AppKit
#if canImport(UIKit)
#if targetEnvironment(macCatalyst)
AppKit
macCatalyst
UIKit
by placing
#if canImport(UIKit)
first, it means that building for#if targetEnvironment(macCatalyst)
doesn't fail attempting to use and link inAppKit
things (sincemacCatalyst
apps can link bothUIKit
andAppKit