Skip to content

Commit

Permalink
feat: watchOS icon previews (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Jan 4, 2023
1 parent 6bc3334 commit 0c03de8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Symbolic/Models/PreviewType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ enum PreviewType: Equatable, Identifiable, CaseIterable {

case macOS
case iOS
case watchOS

var systemImage: String {
switch self {
case .macOS:
return "desktopcomputer"
case .iOS:
return "iphone"
case .watchOS:
return "applewatch"
}
}

}
3 changes: 3 additions & 0 deletions Symbolic/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0c03de8

Please sign in to comment.