]> git.r.bdr.sh - rbdr/map/blob - Map/MapApp.swift
3.0.0
[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 }