0.10.6
This commit is contained in:
commit
92660a4ba0
228 files changed
+24496
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
@MainActor
|
||||
struct LumaApp: App {
|
||||
@StateObject private var model = AppModel()
|
||||
@Environment(\.scenePhase) private var scenePhase
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
RootView(model: model)
|
||||
.tint(Color(red: 0.14, green: 0.56, blue: 0.96))
|
||||
.onChange(of: scenePhase) { _, phase in
|
||||
model.setApplicationActive(phase == .active)
|
||||
}
|
||||
}
|
||||
#if os(macOS)
|
||||
.defaultSize(width: 1_080, height: 720)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user