You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR cannot assign to property: 'testObservable' is a get-only property
19 | self.testObservable = TestObservable()
| ^
To Reproduce
import TokamakShim
structTokamakApp:App{varbody:someScene{WindowGroup("Tokamak App"){ContentView()}}}publicclassTestObservable:ObservableObject{@Publishedvartest=0}publicstructContentView:View{@ObservedObjectvartestObservable:TestObservablepublicinit(){self.testObservable =TestObservable()}publicvarbody:someView{EmptyView()}}
// @main attribute is not supported in SwiftPM apps.
// See https://bugs.swift.org/browse/SR-12683 for more details.
TokamakApp.main()
Expected behavior
The code compiles successfully.
Desktop (please complete the following information):
OS: macOS
Browser: Safari
Version of the browser: 14.0.3 (16610.4.3.1.4)
Version of Tokamak: 0.6.1
The text was updated successfully, but these errors were encountered:
I apologize, I should not have replied from memory. I too have encountered this issue as a difference between the way that iOS works. The following workaround will work:
Describe the bug
To Reproduce
Expected behavior
The code compiles successfully.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: