Using Swift to Seed a Core Data Database

1 · Andrew Bancroft · Feb. 26, 2015, 3:44 a.m.
Updated on September 23, 2015 – Swift 2.0 Designing an application’s UI can be difficult without actual data to present. Early on in the design process, data sourced from something like an array can suffice. Later on, however, our data sources become more dependent on actual data stores, such as what Core Data provides us. During development, I’ve found that it’s often convenient to seed a Core Data database with sample data so that I can preview how it’ll look in my application....