+import Sparkle
/*
Copyright (C) 2024 Rubén Beltrán del Río
along with this program. If not, see https://map.tranquil.systems.
*/
import SwiftUI
-import Sparkle
@main
struct MapApp: App {
-
- private let updaterController: SPUStandardUpdaterController = SPUStandardUpdaterController(startingUpdater: true, updaterDelegate: nil, userDriverDelegate: nil)
-
+
+ private let updaterController: SPUStandardUpdaterController = SPUStandardUpdaterController(
+ startingUpdater: true, updaterDelegate: nil, userDriverDelegate: nil)
+
var body: some Scene {
DocumentGroup(newDocument: MapDocument()) { file in
MapEditor(document: file.$document, url: file.fileURL)
+ .focusedSceneValue(\.document, file.$document)
+ .focusedSceneValue(\.fileURL, file.fileURL)
}.commands {
MapCommands()
UpdateCommands(updaterController: updaterController)