skip to Main Content

SwiftUI: @StateObject deinit NOT called? – Ios swift

I have the following code: struct ContentView: View { @Environment(.managedObjectContext) private var viewContext @FetchRequest( sortDescriptors: [NSSortDescriptor(keyPath: Item.timestamp, ascending: true)], animation: .default) private var items: FetchedResults<Item> var body: some View { NavigationView { List { ForEach(items) { item in NavigationLink {…

VIEW QUESTION
Back To Top
Search