Created
September 2, 2015 14:40
-
-
Save swizzlr/2bafcd83ad8583a97c24 to your computer and use it in GitHub Desktop.
Isolate those realms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates a new in memory realm for testing | |
internal func NewTestRealm() -> Realm { | |
let idString = NSUUID().UUIDString | |
let config = Realm.Configuration(inMemoryIdentifier: idString) | |
return try! Realm(configuration: config) | |
} | |
import RealmSwift | |
import Foundation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment