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
in a project it stops compiling with some obscure errors. From what I can make out, it seems the classes defined in the package clash with the SwiftUI @observable macro:
/var/folders/rt/5jrx9dk91r17__4r2tm3m01w0000gn/T/swift-generated-sources/@__swiftmacro_6cardya13HKDataManager10ObservablefMe_.swift:1:26 'Observation' is ambiguous for type lookup in this context
A minimal reproduction of this error:
import SwiftUI
import ModelsDSTU2
import ModelsR4
@Observable class TestClass {}
The quickest work around has been to move all associated code to a separate file in an extension.
The text was updated successfully, but these errors were encountered:
I think I'm going crazy here but after importing
in a project it stops compiling with some obscure errors. From what I can make out, it seems the classes defined in the package clash with the SwiftUI @observable macro:
A minimal reproduction of this error:
The quickest work around has been to move all associated code to a separate file in an extension.
The text was updated successfully, but these errors were encountered: