Fixed button style
This commit is contained in:
parent
0ab1b16383
commit
7a92cad2a9
|
@ -12,11 +12,11 @@ struct ShopView: View {
|
||||||
@State private var purchaseError: Bool = false
|
@State private var purchaseError: Bool = false
|
||||||
|
|
||||||
private var canPay: Bool {
|
private var canPay: Bool {
|
||||||
// #if DEBUG || targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
// return true
|
return true
|
||||||
// #else
|
#else
|
||||||
return false
|
return false
|
||||||
// #endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
@ -177,7 +177,8 @@ extension ShopView {
|
||||||
} label: {
|
} label: {
|
||||||
planSelector(.monthly, isSelected: selectedPlan == PlusPlan.monthly)
|
planSelector(.monthly, isSelected: selectedPlan == PlusPlan.monthly)
|
||||||
}
|
}
|
||||||
|
.buttonStyle(.plain)
|
||||||
|
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
guard selectedPlan != .yearly else { return }
|
guard selectedPlan != .yearly else { return }
|
||||||
|
@ -187,7 +188,8 @@ extension ShopView {
|
||||||
} label: {
|
} label: {
|
||||||
planSelector(.yearly, isSelected: selectedPlan == PlusPlan.yearly)
|
planSelector(.yearly, isSelected: selectedPlan == PlusPlan.yearly)
|
||||||
}
|
}
|
||||||
|
.buttonStyle(.plain)
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
|
|
Loading…
Reference in New Issue