Skip to content

Commit 396a379

Browse files
committed
Apple contentShape modifier for tappable to have the whole area interactive
1 parent be1c572 commit 396a379

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WooCommerce/Classes/View Modifiers/View+Tappable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ private struct TappableViewModifier: ViewModifier {
88
onTap()
99
} label: {
1010
content
11+
.contentShape(Rectangle())
1112
}
1213
.buttonStyle(.plain)
1314
}

0 commit comments

Comments
 (0)