Explorar el Código

add .widgetAccentable() to Watch complicationIcon

Paul Plant hace 1 año
padre
commit
bdde8da2f6
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      Trio Watch Complication/TrioWatchComplication.swift

+ 3 - 0
Trio Watch Complication/TrioWatchComplication.swift

@@ -42,6 +42,8 @@ struct TrioWatchComplicationEntryView: View {
             TrioAccessoryCornerView(entry: entry)
         default:
             Image("ComplicationIcon")
+                .widgetAccentable()
+                .widgetBackground(backgroundView: Color.clear)
         }
     }
 }
@@ -67,6 +69,7 @@ struct TrioAccessoryCircularView: View {
     var body: some View {
         Image("ComplicationIcon")
             .resizable()
+            .widgetAccentable()
             .widgetBackground(backgroundView: Color.clear)
     }
 }