Skip to content

Commit

Permalink
Paywalls: fixed tappable area for a couple of buttons (#2915)
Browse files Browse the repository at this point in the history
After testing this on a device I realized that both the paywall list in
the sample app and the package buttons were only tappable on the labels.
  • Loading branch information
NachoSoto committed Aug 28, 2023
1 parent 719c5a9 commit 5ba63b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions RevenueCatUI/Templates/MultiPackageBoldTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ private struct MultiPackageTemplateContent: View {
self.selectedPackage = package.content
} label: {
self.packageButton(package, selected: self.selectedPackage === package.content)
.contentShape(Rectangle())
}
.buttonStyle(PackageButtonStyle())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ struct SamplePaywallsList: View {
self.selectedTemplate = template
} label: {
Text(template.name)
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
}
.buttonStyle(.plain)
}
Expand Down

0 comments on commit 5ba63b4

Please sign in to comment.