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
Objectsubclass (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 moreObjectmodels, the property must be declared asletand cannot bedynamic.Declaration
Swift
public final class List<T : Object> : ListBase
-
Declaration
Swift
public final class Realm
-
Resultsis 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 moreSortDescriptorstores 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
View on GitHub
Install in Dash
Extensions Reference