Skip to content

Commit 505c430

Browse files
fixed button not animating when tapped on transparent background
1 parent e4cff7c commit 505c430

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/ComponentsKit/Components/Button/SUButton.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ private struct CustomButtonStyle: SwiftUI.ButtonStyle {
108108
configuration.label
109109
.font(self.model.preferredFont.font)
110110
.lineLimit(1)
111+
.contentShape(.rect)
111112
.padding(.horizontal, self.model.horizontalPadding)
112113
.frame(maxWidth: self.model.width)
113114
.frame(height: self.model.height)

0 commit comments

Comments
 (0)