I have an existing UIKit based project. I would like to incorporate views based on SwiftUI. When creating a first view the compiler raises the following error:
struct ChartCore: View { //Inheritance from non-protocol type 'View'
var body: some View {
Text("Hello, World!")
}
}
This issue has already been discussed here. In my case the problem is that I have a CoreData class which is defined as View
public class View: NSManagedObject, Decodable {
}
How do I avoid changing my CoreData model ?