SwiftData by Example: iOS 17 & SwiftUI 5 — Part 2
So far we have been able to add book to the database using SwiftData. Let’s continue to build our app and add ability to fetch saved books from saved persistence store.
We will start by building a view to display list of books.
import SwiftUI
struct BookListView: View {
var body: some View {
Text("Hello, DevTechie!")
}
}
#Preview {…