My app (iOS) will have a ton of data built in (and not synced to a server). I know I can take a pre-filled realm database and copy it over when the app is first used, but what I don't know is: What is the best way to build that pre-filled database?
Should modify my app, to statically create the realm database, by hardcoding all the objects and relations, then pull the database from the emulator:
let car1 = Car(color: "red")
...
let car230 = Car(color: "blue")
...
try realm.write{
realm.add(car1)
...
realm.add(car230)
}
Or is there a saner approach to this?