Yes, Core Data and SwiftUI work very well together. In fact, Apple recommends using Core Data to manage data in SwiftUI apps. Core Data provides a layer of abstraction between your app's data and the underlying storage mechanism, which is essential for building scalable and flexible apps. Additionally, SwiftUI provides a declarative way of building user interfaces, making it easy to display data managed by Core Data.
With Core Data and SwiftUI, you can create complex data models and relationships, and easily display that data in your app's user interface. SwiftUI has special features like the @FetchRequest property wrapper which allows you to fetch data from your data store and display it in your app's UI. SwiftUI's built-in state management makes it easy to keep your UI in sync with changes to your data.
Overall, using Core Data and SwiftUI together is a powerful combination for building data-driven iOS apps. It allows you to focus on building great user experiences, while Core Data takes care of the complex data management tasks..