Skip to content

Commit

Permalink
fix: supports mac catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
phantumcode committed Dec 7, 2023
1 parent b26bf29 commit 6ef95bd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ef95bd

Please sign in to comment.