If you would like to share a Realm file between a tv OS app and a TV services extension (e.g.
Top Shelf extension), you have to use the You can also bundle prebuilt Realm files in your app.
For example, suppose you have an application where users have to log in to your web backend, and you want to support quickly switching between accounts.
You could give each account its own Realm file that will be used as the default Realm by doing the following: The most common location to store writable Realm files is the “Documents” directory on i OS and the “Application Support” directory on mac OS.
For example, if you have two teams working on different components of your application which both use Realm internally, you may not want to have to coordinate migrations between them.
You can do this by setting the Realm works in such a way that the size of a Realm file is always larger than the total size of the objects stored within it.
This is a useful option if you need flexible data access without the overhead of disk persistence.Instead, they grow by specific size increments, with new data being written within unused space tracked inside the file.However, there may be situations in which a significant portion of a Realm file is comprised of unused space.When reporting Realm issues, please be sure to include these auxiliary files along with your main You can refer to our migration sample app for an example of how to use a bundled Realm file.In some scenarios you may wish to limit which classes can be stored in a specific Realm.