From 0cc8ac9cc39ce3a1bcc9ea88345d18f17a46cb2a Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 11 Jul 2025 12:06:04 +0200 Subject: Add QuickLook plugin --- Map/Data/MapDocument.swift | 6 ------ Map/Data/UTType+wmap.swift | 21 +++++++++++++++++++++ Map/Data/UserPreferencesJSON.swift | 0 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 Map/Data/UTType+wmap.swift delete mode 100644 Map/Data/UserPreferencesJSON.swift (limited to 'Map/Data') diff --git a/Map/Data/MapDocument.swift b/Map/Data/MapDocument.swift index b9ed33f..3c19ca1 100644 --- a/Map/Data/MapDocument.swift +++ b/Map/Data/MapDocument.swift @@ -15,12 +15,6 @@ import SwiftUI import UniformTypeIdentifiers -extension UTType { - static var wmap: UTType { - UTType(importedAs: "systems.tranquil.map.wmap") - } -} - struct MapDocument: FileDocument { var text: String diff --git a/Map/Data/UTType+wmap.swift b/Map/Data/UTType+wmap.swift new file mode 100644 index 0000000..aa8b8fd --- /dev/null +++ b/Map/Data/UTType+wmap.swift @@ -0,0 +1,21 @@ +// Copyright (C) 2024 Rubén Beltrán del Río + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see https://map.tranquil.systems. +import UniformTypeIdentifiers + +extension UTType { + static var wmap: UTType { + UTType(importedAs: "systems.tranquil.map.wmap") + } +} diff --git a/Map/Data/UserPreferencesJSON.swift b/Map/Data/UserPreferencesJSON.swift deleted file mode 100644 index e69de29..0000000 -- cgit