Closed adamek314 closed 2 years ago
Workaround, insert SwiftUI. between @ and Binding.
It would be great to separate Views and Models (you can use a @StateObject
ViewModel with @Published
properties for example).
In case you want to import both frameworks, you can of course differentiate Binding
with SwiftUI.Binding
and SQLite.Binding
.
With the following code fragment:
Xcode puts a "Unknown attribute 'Binding'" error at the end of each @Binding line
If I comment out the import SQLite line, the error goes away.
Is there a way to import SQLite.swift and SwiftUI in the same file, or do I have to get more stringent about separating my models and views?
macOS Monterey 12.1 Beta (21C5021h) Xcode Version 13.1 (13A1030d) SQLite.swift 0.13.0