Post

Replies

Boosts

Views

Activity

How do I enable an in app purchase that will display a new screen?
I am trying to build an app where there is a premium version and a free version. When someone purchases the premium version, I want a new screen to show. How do I do this. Code import SwiftUI struct ContentView: View {     var body: some View {           VStack {     Link(destination: URL(string: "https://www.icloud.com/sharedalbum/#B0tG4Tcsmu6ATjR")!) {                 VStack {                     Image(systemName: "paperplane")                         .font(.largeTitle)                     Text("Click here to get wallpapers!")                         .accentColor(Color.white)                         .background(Color.black)                         }                     }                     }                 }             } Premium Code import Foundation import SwiftUI struct Premium: View {     var body: some View {           VStack {     Link(destination: URL(string: "https://www.icloud.com/sharedalbum/#B0tG6XBubu4jvR9")!) {                 VStack {                     Image(systemName: "plus")                         .font(.largeTitle)                     Text("Click here to get Premium wallpapers!")                         .accentColor(Color.white)                         .background(Color.black)                     }                 }             }         }     }
0
0
526
Jun ’22
How do I enable an in app purchase that will display a new screen?
I am trying to build an app where there is a premium version and a free version. When someone purchases the premium version, I want a new screen to show. How do I do this. Code import SwiftUI struct ContentView: View {     var body: some View {           VStack {     Link(destination: URL(string: "https://www.icloud.com/sharedalbum/#B0tG4Tcsmu6ATjR")!) {                 VStack {                     Image(systemName: "paperplane")                         .font(.largeTitle)                     Text("Click here to get wallpapers!")                         .accentColor(Color.white)                         .background(Color.black)                         }                     }                     }                 }             } Premium Code import Foundation import SwiftUI struct Premium: View {     var body: some View {           VStack {     Link(destination: URL(string: "https://www.icloud.com/sharedalbum/#B0tG6XBubu4jvR9")!) {                 VStack {                     Image(systemName: "plus")                         .font(.largeTitle)                     Text("Click here to get Premium wallpapers!")                         .accentColor(Color.white)                         .background(Color.black)                     }                 }             }         }     }
Replies
0
Boosts
0
Views
526
Activity
Jun ’22
Cannot find 'run' in scope error
anyone know how to fix this xcode bug? I am building in swift for the SwiftStudentChallenge. @main struct MyApp: App {     var body: some Scene {         WindowGroup {             run; /Users/christopherrobinson/Documents/WWDC22; Scene.app             ContentView()         }     } }
Replies
1
Boosts
0
Views
1.4k
Activity
Apr ’22
I am unable to set the new portrait watch face on my s3
How do I set this watch face I want to use it so bad and I have the beta!!!!!!!!!!!
Replies
1
Boosts
0
Views
810
Activity
Sep ’21