diff --git a/Sources/AmplifyUtilsNotifications/AUNotificationPermissions.swift b/Sources/AmplifyUtilsNotifications/AUNotificationPermissions.swift index dca2279..8f9ae94 100644 --- a/Sources/AmplifyUtilsNotifications/AUNotificationPermissions.swift +++ b/Sources/AmplifyUtilsNotifications/AUNotificationPermissions.swift @@ -11,8 +11,13 @@ import UserNotifications #if canImport(WatchKit) import WatchKit #elseif canImport(AppKit) +#if targetEnvironment(macCatalyst) +import UIKit +typealias Application = UIApplication +#else import AppKit typealias Application = NSApplication +#endif #elseif canImport(UIKit) import UIKit typealias Application = UIApplication