There was an error while loading. Please reload this page.
1 parent c467078 commit 6884ad4Copy full SHA for 6884ad4
Sources/SwiftDuxExtras/Persistence/PersistStateMiddleware.swift
@@ -2,7 +2,12 @@ import Combine
2
import Foundation
3
import SwiftDux
4
5
-#if canImport(UIKit)
+#if canImport(WatchKit)
6
+
7
+ import WatchKit
8
+ fileprivate let notification: NSNotification.Name? = WKExtension.applicationDidEnterBackgroundNotification
9
10
+#elseif canImport(UIKit)
11
12
import UIKit
13
fileprivate let notification: NSNotification.Name? = UIApplication.didEnterBackgroundNotification
0 commit comments