Posts

Post not yet marked as solved
0 Replies
194 Views
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)                     }                 }             }         }     }
Posted Last updated
.
Post marked as solved
1 Replies
279 Views
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()         }     } }
Posted Last updated
.