Structs
The following structs are available globally.
-
Struct that describes the error codes within the Realm error domain. The values can be used to catch a variety of recoverable errors, especially those happening when initializing a Realm instance.
See morelet realm: Realm? do { realm = Realm() } catch RealmSwift.Error.incompatibleLockFile { print("Realm Browser app may be attached to Realm on device?") }
Declaration
Swift
public struct Error
-
A
See moreSortDescriptor
stores a property name and a sort order for use withsorted(sortDescriptors:)
. It is similar toNSSortDescriptor
, but supports only the subset of functionality which can be efficiently run by Realm’s query engine.Declaration
Swift
public struct SortDescriptor