Wrap paywall into NavigationStack
This commit is contained in:
parent
0ec06c2c65
commit
11a0f95cdd
|
@ -51,8 +51,10 @@ struct PaywallModifier: ViewModifier {
|
||||||
Text(Strings.Alerts.Iap.Restricted.message)
|
Text(Strings.Alerts.Iap.Restricted.message)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.themeModal(item: $paywallFeature) {
|
.themeModal(item: $paywallFeature) { feature in
|
||||||
PaywallView(isPresented: isPresentingPurchase, feature: $0)
|
NavigationStack {
|
||||||
|
PaywallView(isPresented: isPresentingPurchase, feature: feature)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: reason) {
|
.onChange(of: reason) {
|
||||||
switch $0 {
|
switch $0 {
|
||||||
|
|
|
@ -37,9 +37,13 @@ struct PaywallView: View {
|
||||||
|
|
||||||
// FIXME: #585, implement payments
|
// FIXME: #585, implement payments
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Text(String(describing: feature))
|
VStack {
|
||||||
.toolbar(content: toolbarContent)
|
Spacer()
|
||||||
.navigationTitle(Strings.Global.purchase)
|
Text(String(describing: feature).capitalized)
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
.toolbar(content: toolbarContent)
|
||||||
|
.navigationTitle(Strings.Global.purchase)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue