diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-04 17:06:28 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-04 17:06:28 +0200 |
| commit | c843d34f56c207abcf4b93e424125eea2dc601e0 (patch) | |
| tree | 415dc2d9be4be31e290e1dd1dedb0b630c5e8fc6 /Map/Presentation/MapEditor.swift | |
| parent | ed10ac191df473c92c4fec495aafa7f569d108c8 (diff) | |
Upgrade to Swift 6
Diffstat (limited to 'Map/Presentation/MapEditor.swift')
| -rw-r--r-- | Map/Presentation/MapEditor.swift | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Map/Presentation/MapEditor.swift b/Map/Presentation/MapEditor.swift index 5cda8f9..1e25ce8 100644 --- a/Map/Presentation/MapEditor.swift +++ b/Map/Presentation/MapEditor.swift @@ -102,8 +102,8 @@ struct MapEditor: View { MapRenderView( document: $document, evolution: $selectedEvolution, onDragVertex: onDragVertex ).scaleEffect(zoom, anchor: .center).frame( - width: (Dimensions.mapSize.width + 2 * Dimensions.mapPadding) * zoom, - height: (Dimensions.mapSize.height + 2 * Dimensions.mapPadding) * zoom) + width: (Dimensions.Map.size.width + 2 * Dimensions.Map.padding) * zoom, + height: (Dimensions.Map.size.height + 2 * Dimensions.Map.padding) * zoom) }.background(Color.UI.background) .gesture( MagnificationGesture() @@ -125,16 +125,16 @@ struct MapEditor: View { value: $zoom, in: zoomRange, step: 0.1, label: { Text(formatZoom(zoom)) - .font(.Theme.smallControl) + .font(.Theme.SmallControl.regular) }, minimumValueLabel: { Image(systemName: "minus.magnifyingglass") - .font(.Theme.smallControl) + .font(.Theme.SmallControl.regular) .help("Zoom Out (⌘-)") }, maximumValueLabel: { Image(systemName: "plus.magnifyingglass") - .font(.Theme.smallControl) + .font(.Theme.SmallControl.regular) .help("Zoom In (⌘+)") } ).frame(width: 200).padding(.trailing, 10.0) |