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
Post
Replies
Boosts
Views
Activity
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
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