Skip to content

Commit d35942c

Browse files
committed
Set content shape to rectangle to allow tapping on background without UI elements on top.
1 parent b3c0e3f commit d35942c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/JetpackConnectionPackageSites/JetpackBenefitsBanner.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,12 @@ struct JetpackBenefitsBanner: View {
5656
}
5757
.padding(insets: Layout.padding)
5858
}
59-
.gesture(
60-
TapGesture()
61-
.onEnded { _ in
62-
self.tapAction()
63-
}
64-
)
6559
.background(Color(.jetpackBenefitsBackground))
6660
.fixedSize(horizontal: false, vertical: true)
61+
.contentShape(Rectangle())
62+
.onTapGesture {
63+
self.tapAction()
64+
}
6765
}
6866
}
6967

0 commit comments

Comments
 (0)