Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let config = Realm.Configuration(
- // Get the URL to the bundled file
- fileURL: Bundle.main.url(forResource: "MyBundledData", withExtension: "realm"),
- // Open the file in read-only mode as application bundles are not writeable
- readOnly: true)
- // Open the Realm with the configuration
- let realm = try! Realm(configuration: config)
Add Comment
Please, Sign In to add comment