In the previous episode, you learned how to load seed data from a file in the application's bundle. It's a common option that isn't that hard to implement. Once you've laid the groundwork, though, the seed data can come from anywhere. Let me show you what changes we need to make to seed the persistent store with data fetched from a remote server.
Subscribe to Cocoacasts Plus to watch this episode.
Seeding a Core Data Persistent Store
Loading Seed Data From a Remote Server
by Bart Jacobs in Core Data
Swift 4
Xcode 9
iOS 11
Seeding a Core Data Persistent Store
-
05:11
-
09:52
-
08:34
-
08:12
-
5 Loading Seed Data From a File
08:21
-
6 Loading Seed Data From a Remote Server
05:45