Contents

replaceAll(_:)

Replaces the existing anchor collection with a provided collection.

Declaration

@MainActor @preconcurrency func replaceAll(_ entities: [any HasAnchoring])

Parameters

  • entities:

    An array of anchors to replace the existing collection.

Discussion

This method removes all anchors currently in the collection, then appends all the elements in entities to the collection.

See Also

Replacing anchors