We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2897252 commit f1c9033Copy full SHA for f1c9033
templates/swift/Sources/OAuth/View+OAuth.swift.twig
@@ -2,10 +2,14 @@
2
typealias OSApplication = NSApplication
3
typealias OSViewController = NSViewController
4
let notificationType = NSApplication.willBecomeActiveNotification
5
-#elseif os(iOS) || os(tvOS) || os(watchOS)
+#elseif os(iOS) || os(tvOS)
6
typealias OSApplication = UIApplication
7
typealias OSViewController = UIViewController
8
let notificationType = UIApplication.willEnterForegroundNotification
9
+#elseif os(watchOS)
10
+typealias OSApplication = WKApplication
11
+typealias OSViewController = WKInterfaceController
12
+let notificationType = WKApplication.willEnterForegroundNotification
13
#endif
14
15
#if canImport(SwiftUI)
0 commit comments