Instance Property


The array of unenumerated objects.


var allObjects: [Any] { get }


This array contains all the remaining objects of the enumerator in enumerated order. It does not contain objects that have already been enumerated with previous nextObject() messages.

Accessing this property exhausts the enumerator’s collection so that subsequent invocations of nextObject() return nil.

See Also

Getting the Enumerated Objects

func nextObject() -> Any?

Returns the next object from the collection being enumerated.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software