We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c79b54 commit 25bfce6Copy full SHA for 25bfce6
compound-ios/Sources/Compound/Buttons/SendButton.swift
@@ -20,10 +20,6 @@ public struct SendButton: View {
20
return colorScheme == .light ? .compound.iconOnSolidPrimary : .compound.iconPrimary
21
}
22
23
- private var gradient: Gradient {
24
- isEnabled ? .compound.action : .init(colors: [.clear])
25
- }
26
-
27
/// Creates a send button that performs the provided action.
28
public init(action: @escaping () -> Void) {
29
self.action = action
@@ -41,7 +37,9 @@ public struct SendButton: View {
41
37
42
38
var buttonShape: some View {
43
39
Circle()
44
- .fill(LinearGradient(gradient: gradient, startPoint: .top, endPoint: .bottom))
40
+ .fill(isEnabled
+ ? Color.compound.bgAccentRest
+ : Color.clear)
45
46
47
0 commit comments