Effective Core Data with Swift
summary
Core Data and Swift interoperate awkwardly so this shows concrete fixes: turning off Xcode's default generation and using mo generator to produce safe Swift classes, typed to-many relationships, and generated boilerplate for optional scalar handling. Concrete examples include mapping Swift enums to storage via raw values, serializing arbitrary types with Codable support into blobs, and generated property-name constants for predicates. The generator runs as a build step and the generated code works; Codable on managed objects is in progress.
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:20Introduction
- 1:32Core Data History
- 1:56Core Data Conflict
- 2:12Core Data Model
- 2:51Core Data Properties
- 3:59Core Data Relationships
- 7:40NS Set to Set
- 8:24Optionals
- 9:48Not Optional
- 10:43Entity Declaration
- 15:13Property Representation
- 17:07NoTrainer
- 17:37NoGenerator
- 23:48Kalitta
related talks
53mCoreData in 2015 & Magical Record Meets Swift
25mModern Core Data
45mSwiftData as a Replacement for CoreData: Deep Dive
41mUsing Core Data in a Modern SwiftUI Application
47mAdvanced Codable — When the API wasn’t built for Swift
22mThe Great SwiftData Heist
28mEncoding and Decoding in Swift
29mAlgebraic Data Types in Swift
