mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2024-12-11 17:07:49 +01:00
44 lines
1.2 KiB
Swift
44 lines
1.2 KiB
Swift
//Made by Lumaa
|
|
|
|
import SwiftUI
|
|
import StoreKit
|
|
|
|
struct ShopView: View {
|
|
@Environment(\.dismiss) private var dismiss
|
|
|
|
var body: some View {
|
|
NavigationStack {
|
|
ProductView(id: "fr.lumaa.Threaded.plus") {
|
|
VStack {
|
|
Text(String("Threaded+")) // Force the name as untranslatable
|
|
.font(.title.bold())
|
|
.foregroundStyle(.white)
|
|
Text("shop.threaded-plus.description")
|
|
.font(.caption)
|
|
.foregroundStyle(.gray)
|
|
}
|
|
.ignoresSafeArea()
|
|
.background(Color.yellow.gradient)
|
|
}
|
|
.productViewStyle(.large)
|
|
.storeButton(.visible, for: .redeemCode)
|
|
.navigationTitle(String(""))
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
.navigationBarBackButtonHidden()
|
|
.toolbar {
|
|
ToolbarItem(placement: .cancellationAction) {
|
|
Button {
|
|
dismiss()
|
|
} label: {
|
|
Text("shop.cancel")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ShopView()
|
|
}
|