Skip to content

Instantly share code, notes, and snippets.

@lexuanquynh
Created July 15, 2022 03:12
Show Gist options
  • Save lexuanquynh/85a50a18f48937ca75f71b4c0359b71e to your computer and use it in GitHub Desktop.
Save lexuanquynh/85a50a18f48937ca75f71b4c0359b71e to your computer and use it in GitHub Desktop.
public init(fileURL: URL? = URL(fileURLWithPath: RLMRealmPathForFile("default.realm"), isDirectory: false),
inMemoryIdentifier: String? = nil,
syncConfiguration: SyncConfiguration? = nil,
encryptionKey: Data? = nil,
readOnly: Bool = false,
schemaVersion: UInt64 = 0,
migrationBlock: MigrationBlock? = nil,
deleteRealmIfMigrationNeeded: Bool = false,
shouldCompactOnLaunch: ((Int, Int) -> Bool)? = nil,
objectTypes: [ObjectBase.Type]? = nil,
seedFilePath: URL? = nil) {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment