]> git.r.bdr.sh - rbdr/map/blob - Map/MapApp.swift
ef1b119310980049d35b220131c9063a817d471d
[rbdr/map] / Map / MapApp.swift
1 import SwiftUI
2 import Sparkle
3
4 @main
5 struct MapApp: App {
6
7 private let updaterController: SPUStandardUpdaterController = SPUStandardUpdaterController(startingUpdater: true, updaterDelegate: nil, userDriverDelegate: nil)
8
9 var body: some Scene {
10 DocumentGroup(newDocument: MapDocument()) { file in
11 MapEditor(document: file.$document, url: file.fileURL)
12 }.commands {
13 MapCommands()
14 UpdateCommands(updaterController: updaterController)
15 }
16 }
17 }