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 --- .../Preferences/TemplatesPreferencesView.swift | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'Map/Presentation') diff --git a/Map/Presentation/Preferences/TemplatesPreferencesView.swift b/Map/Presentation/Preferences/TemplatesPreferencesView.swift index 375ed68..51d1c5e 100644 --- a/Map/Presentation/Preferences/TemplatesPreferencesView.swift +++ b/Map/Presentation/Preferences/TemplatesPreferencesView.swift @@ -15,27 +15,6 @@ import SwiftUI -struct Template: Identifiable, Codable, Hashable { - var id = UUID() - var name: String - var content: String - var isDefault: Bool = false - - init(name: String, content: String, isDefault: Bool = false) { - self.name = name - self.content = content - self.isDefault = isDefault - } - - func hash(into hasher: inout Hasher) { - hasher.combine(id) - } - - static func == (lhs: Template, rhs: Template) -> Bool { - lhs.id == rhs.id - } -} - struct TemplatesPreferencesView: View { @AppStorage("mapTemplates") private var templatesData: Data = UserPreferences.Defaults .mapTemplates -- cgit