In Xcode 12, does the CoreData / SwiftUI 2.0 template give you an app that only displays a white screen? Well...
In ContentView, replace the body with this...
In ContentView, replace the body with this...
Code Block swift var body: some View { NavigationView { List { ForEach(items) { item in Text("Item at \(item.timestamp!, formatter: itemFormatter)") } .onDelete(perform: deleteItems) } .toolbar { ToolbarItem(placement: .navigationBarLeading) { #if os(iOS) EditButton() #endif } ToolbarItem(placement: .navigationBarTrailing) { Button(action: addItem) { Label("Add Item", systemImage: "plus") } } } } }