Post

Replies

Boosts

Views

Activity

Reply to No ObservableObject
Add the .environmentObject(UserData()) at the @main point in WindowGroup in the View For eg: @main struct YourApp: App {     @StateObject var userData = UserData()          var body: some Scene {                  WindowGroup         {             YourMainView().environmentObject(userdata)                          }     } } Also Try replacing the if !self.userData.showFavoritesOnly with if userData.showFavouritesOnly != false or true // According to your condition
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
Reply to No ObservableObject
Add the .environmentObject(UserData()) at the @main point in WindowGroup in the View For eg: @main struct YourApp: App {     @StateObject var userData = UserData()          var body: some Scene {                  WindowGroup         {             YourMainView().environmentObject(userdata)                          }     } } Also Try replacing the if !self.userData.showFavoritesOnly with if userData.showFavouritesOnly != false or true // According to your condition
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to SwiftUI presentationMode dismiss not work on specific case
That's the same issue I'm having . Please anyone who knows reply the question . What to use instead of this environment value? I have Xcode 13.4.1
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Wrong automatic prices for In-App-purchases
Even I am having the same problem, when I set the Default Storefront in Configuration Settings in Xcode to India (INR) it just replaces the dollar sign to Indian Rupee sign Eg: $ 59.99 to Rs 59.99 Apple , if this is a bug from your side, please solve this
Replies
Boosts
Views
Activity
May ’24