RLMCollection

extension RLMCollection
  • Returns a RLMCollectionIterator that yields successive elements in the collection. This enables support for sequence-style enumeration of RLMObject subclasses in Swift.

    Declaration

    Swift

    public func makeIterator() -> RLMCollectionIterator<RLMObject>
  • Returns the index of the first object in the collection matching the predicate.

    Declaration

    Swift

    public func indexOfObject(where predicateFormat: String, _ args: CVarArg...) -> UInt
  • Returns all objects matching the given predicate in the collection.

    Declaration

    Swift

    public func objects(where predicateFormat: String, _ args: CVarArg...) -> RLMResults<NSObject>