We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c76d620 commit b89a9d4Copy full SHA for b89a9d4
Sources/STAnnotationsPluginShared/STAnnotationLabelView.swift
@@ -32,12 +32,14 @@ public struct STAnnotationLabelView: View {
32
ZStack {
33
// the way it draws bothers me
34
// https://twitter.com/krzyzanowskim/status/1527723492002643969
35
- Image(systemName: "octagon")
36
- .symbolVariant(.fill)
37
- .foregroundStyle(.red)
+ Group {
+ Image(systemName: "octagon")
+ .symbolVariant(.fill)
38
+ .foregroundStyle(color).brightness(-0.4)
39
- Image(systemName: "xmark.octagon")
40
- .foregroundStyle(.white)
+ Image(systemName: "xmark.octagon")
41
+ .foregroundStyle(.background)
42
+ }.compositingGroup()
43
}
44
.shadow(color: color, radius: 1)
45
0 commit comments