A type-erased RealmCollection.

Instances of RealmCollection forward operations to an opaque underlying collection having the same Element type. This type can be used to write non-generic code which can operate on or store multiple types of Realm collections. It does not have any runtime overhead over using the original collection directly.

  • Creates an AnyRealmCollection wrapping base.

  • Returns the object at the given index.

  • A human-readable description of the objects represented by the linking objects.