Contents

enumerateObjects(options:using:)

Executes a given block using each object in the set, using the specified enumeration options.

Declaration

func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, UnsafeMutablePointer<ObjCBool>) -> Void)

Parameters

  • opts:

    A bitmask that specifies the options for the enumeration.

  • block:

    The block to apply to elements in the set.

    The block takes two arguments:

    obj

    The element in the set.

    stop

    A reference to a Boolean value. The block can set the value to True to stop further processing of the set. The stop argument is an out-only argument. You should only ever set this Boolean to True within the block.

See Also

Accessing Set Members