Replies: 2 comments
-
|
I guess I found the root cause: My app uses Skip Fuse while the skipapp-showcase runs on Skip Lite. |
Beta Was this translation helpful? Give feedback.
-
|
Following the Fuse example https://github.com/skiptools/skipapp-showcase-fuse/blob/main/Sources/ShowcaseFuse/ObservablePlayground.swift it now works fine! Originally in my code I had the .onReceive, but it turned out to be not needed anymore and after adding more @ObservationIgnored in the larger project it works fine as I forgot about that after I had to change many private var to var to get it compiled. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my original well working SwiftUI app for iOS 17 on Swift 5 @observable combined with .onReceive(...) works fine, but when activating SKIP_ACTION = launch instead of none, it leads to this compile error:
Then I tried as alternative the older ObservableObject, but that failed on Skip with a different compile error, but compiles well on normal SwiftUI:
Reduced code derived from my larger project, now with both alternatives, which work both on non-Skip SwiftUI:
I'll now try to convert my code to follow the example https://github.com/skiptools/skipapp-showcase/blob/main/Sources/Showcase/ObservablePlayground.swift ...
So if nobody sees a direct grave error in above, please wait until I completed the conversion to follow the ObservablePlayground example.
Beta Was this translation helpful? Give feedback.
All reactions