Guest User

Untitled

a guest
May 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. let config = Realm.Configuration(
  2. // Get the URL to the bundled file
  3. fileURL: Bundle.main.url(forResource: "MyBundledData", withExtension: "realm"),
  4. // Open the file in read-only mode as application bundles are not writeable
  5. readOnly: true)
  6.  
  7. // Open the Realm with the configuration
  8. let realm = try! Realm(configuration: config)
Add Comment
Please, Sign In to add comment