I'm using this modifier for my AppClip
When I enable Mac Catalyst support, I get a compile error on SKOverlay with ('SKOverlay' is unavailable in Mac Catalyst) and on .appStoreOverlay with (Value of type 'some View' has no member 'appStoreOverlay')
I tried fixing it by wrapping my ContentView with #if targetEnvironment(macCatalyst).. something like:
This gets rid of the SKOverlay error but I still the compile error for .appStoreOverlay
https://developer.apple.com/forums/thread/656574 I found this answer from an Apple engineer but for me the case is the opposite, it compiles fine on the simulator but it doesn't on the real device which I need if I want to archive the app
Code Block .appStoreOverlay(isPresented: $showAppStoreOverlay) { SKOverlay.AppClipConfiguration(position: .bottomRaised) }
When I enable Mac Catalyst support, I get a compile error on SKOverlay with ('SKOverlay' is unavailable in Mac Catalyst) and on .appStoreOverlay with (Value of type 'some View' has no member 'appStoreOverlay')
I tried fixing it by wrapping my ContentView with #if targetEnvironment(macCatalyst).. something like:
Code Block #if targetEnvironment(macCatalyst) ContentView() #else ContentView() .appStoreOverlay(isPresented: $showAppStoreOverlay) { SKOverlay.AppClipConfiguration(position: .bottomRaised) } #endif
This gets rid of the SKOverlay error but I still the compile error for .appStoreOverlay
https://developer.apple.com/forums/thread/656574 I found this answer from an Apple engineer but for me the case is the opposite, it compiles fine on the simulator but it doesn't on the real device which I need if I want to archive the app