Files
ios/MusicBridge/MusicBridgeApp.swift
T
ros 6174be5610
iOS build and tests / simulator (push) Has been cancelled
Add native SwiftUI player and macOS CI
2026-09-10 09:11:55 +03:00

16 lines
404 B
Swift

import SwiftUI
@main
struct MusicBridgeApp: App {
@StateObject private var store = PlayerStore()
@Environment(\.scenePhase) private var phase
var body: some Scene {
WindowGroup {
ContentView(store: store)
.task { store.setActive(phase == .active) }
.onChange(of: phase) { _, value in store.setActive(value == .active) }
}
}
}