Extensions
The following extensions are available globally.
-
List<T>
is the container type in Realm used to define to-many relationships.Lists hold a single
Object
subclass (T
) which defines thetype
of the list.Lists can be filtered and sorted with the same predicates as
Results<T>
.When added as a property on
See moreObject
models, the property must be declared aslet
and cannot bedynamic
.Declaration
Swift
public final class List<T : Object> : ListBase
-
Initializes a
See moreRealm.Configuration
, suitable for creating newRealm
instances.Declaration
Swift
public final class Realm
-
Results
is an auto-updating container type in Realm returned from object queries.Results can be queried with the same predicates as
List<T>
and you can chain queries to further filter query results.Results cannot be created directly.
See moreDeclaration
Swift
public final class Results<T : Object> : ResultsBase
-
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