You can watch this episode by subscribing to Cocoacasts Plus.

Seeding a Core Data Persistent Store

Loading Seed Data From a Remote Server

Seeding a Core Data Persistent Store
1 Three Strategies 05:11
2 Hard-Coding Seed Data Plus 09:52
3 Seeding Data Asynchronously Plus 08:34
4 Avoiding Duplicates Plus 08:12
5 Loading Seed Data From a File Plus 08:21
6 Loading Seed Data From a Remote Server Plus 05:45
Download Your Free Copy of
The Missing Manual
for Swift Development

The Guide I Wish I Had When I Started Out

Join 20,000+ Developers Learning About Swift Development

Download Your Free Copy

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.

Instant and Unlimited Access
to 400+ Cocoacasts Tutorials

Monthly

$19 / month

Pay Once a Month
30 Day Money Back Guarantee

Yearly

$8.25 / month (billed annually)

Pay Once a Year and Save $129
30 Day Money Back Guarantee
Access to All Books