Skip to content

Commit 4be0d8f

Browse files
authored
fix: supports mac catalyst (#40)
* fix: supports mac catalyst * simplify import logic
1 parent b26bf29 commit 4be0d8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AmplifyUtilsNotifications/AUNotificationPermissions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import UserNotifications
1010

1111
#if canImport(WatchKit)
1212
import WatchKit
13-
#elseif canImport(AppKit)
14-
import AppKit
15-
typealias Application = NSApplication
1613
#elseif canImport(UIKit)
1714
import UIKit
1815
typealias Application = UIApplication
16+
#elseif canImport(AppKit)
17+
import AppKit
18+
typealias Application = NSApplication
1919
#endif
2020

2121
@available(iOSApplicationExtension, unavailable)

0 commit comments

Comments
 (0)