Launch Activity Logic
Nucleic-Session: EBB24271-3AB2-4CBD-A47A-59FC73500371 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -2,7 +2,9 @@ import SwiftUI
|
|||||||
|
|
||||||
@main
|
@main
|
||||||
struct NucleicRemoteApp: App {
|
struct NucleicRemoteApp: App {
|
||||||
@StateObject private var store = RemoteStore()
|
// Bind to the shared instance so the background push handler (which runs with no mounted scene)
|
||||||
|
// and the UI drive the same store.
|
||||||
|
@StateObject private var store = RemoteStore.shared
|
||||||
@Environment(\.scenePhase) private var scenePhase
|
@Environment(\.scenePhase) private var scenePhase
|
||||||
@UIApplicationDelegateAdaptor(PushAppDelegate.self) private var pushDelegate
|
@UIApplicationDelegateAdaptor(PushAppDelegate.self) private var pushDelegate
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user