We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 435803e commit 538ee31Copy full SHA for 538ee31
1 file changed
Solid/Editor/ColorInfo/CopyHexButton.swift
@@ -17,13 +17,15 @@ struct CopyHexButton: View {
17
isShowingHexCopiedIndicator = false
18
}
19
} label: {
20
- Image(
21
- systemName: isShowingHexCopiedIndicator
22
- ? "checkmark"
23
- : "square.on.square"
24
- )
25
- .imageScale(.large)
26
- .foregroundColor(isShowingHexCopiedIndicator ? .green : .primary)
+ Image(systemName: "square.on.square")
+ .imageScale(.large)
+ .opacity(isShowingHexCopiedIndicator ? 0 : 1)
+ .overlay {
+ Image(systemName: "checkmark")
+ .foregroundColor(.green)
27
+ .opacity(isShowingHexCopiedIndicator ? 1 : 0)
28
+ }
29
30
.buttonStyle(.solid)
31
0 commit comments