X-Git-Url: https://git.r.bdr.sh/rbdr/map/blobdiff_plain/e2c37ac1dd2ad562e3d619d39b72a174a2212b67..4e7e11cfd56adfa14a557c76e192ff3148cd2842:/Map/MapApp.swift diff --git a/Map/MapApp.swift b/Map/MapApp.swift index 9aff010..ef1b119 100644 --- a/Map/MapApp.swift +++ b/Map/MapApp.swift @@ -1,12 +1,17 @@ import SwiftUI +import Sparkle @main struct MapApp: App { + + 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) }.commands { MapCommands() + UpdateCommands(updaterController: updaterController) } } }