~/talk

Using Core Data in a Modern SwiftUI Application

Talkat Swift Heroes Digital 2021 · 2021-04-15..04-16· [ios, databases]
slides:none on file

Shows concrete Core Data wiring for SwiftUI: a PersistenceController that creates an in‑memory store for previews, using the @FetchRequest property wrapper for list views, and creating a child managed object context for editable forms so edits stay isolated until saving. Explains how to obtain an editable copy via objectID, persist by saving child then parent, and why managed objects are ObservableObject with NSManaged properties behaving like published bindings.

AI-written summary · about

  1. 0:00Introduction
  2. 3:55Core Data basics
  3. 14:42Setting up Core Data
  4. 16:48Apple's Core Data setup
  5. 20:18Using Core Data in SwiftUI
  6. 25:15Editing records
  7. 30:34Managed object contexts
  8. 36:31Child contexts in practice
  9. 39:00Abstractions and Core Data
  10. 40:25Summary and book promotion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.