From 0c03de8e82351aaee7cd928b3c4177d9953d65bb Mon Sep 17 00:00:00 2001 From: Jason Morley Date: Wed, 4 Jan 2023 21:33:07 +0000 Subject: [PATCH] feat: watchOS icon previews (#37) --- Symbolic/Models/PreviewType.swift | 4 ++++ Symbolic/Views/ContentView.swift | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Symbolic/Models/PreviewType.swift b/Symbolic/Models/PreviewType.swift index d055969d25..2e14eff4b5 100644 --- a/Symbolic/Models/PreviewType.swift +++ b/Symbolic/Models/PreviewType.swift @@ -27,6 +27,7 @@ enum PreviewType: Equatable, Identifiable, CaseIterable { case macOS case iOS + case watchOS var systemImage: String { switch self { @@ -34,6 +35,9 @@ enum PreviewType: Equatable, Identifiable, CaseIterable { return "desktopcomputer" case .iOS: return "iphone" + case .watchOS: + return "applewatch" } } + } diff --git a/Symbolic/Views/ContentView.swift b/Symbolic/Views/ContentView.swift index ed047097e1..d9f993a3df 100644 --- a/Symbolic/Views/ContentView.swift +++ b/Symbolic/Views/ContentView.swift @@ -48,6 +48,9 @@ struct ContentView: View { case .iOS: IconView(icon: document.icon, size: 512, renderShadow: false) .modifier(IconCorners(size: 512)) + case .watchOS: + IconView(icon: document.icon, size: 512, renderShadow: false) + .clipShape(Circle()) } ColorPicker(selection: $document.icon.bottomColor.undoable(undoManager, context: undoContext), supportsOpacity: false) }