removeAll(keepCapacity:)
Removes all anchors from the collection.
Declaration
@MainActor @preconcurrency func removeAll(keepCapacity: Bool = false)Parameters
- keepCapacity:
Pass true to keep the existing capacity of the array after removing its elements. The default value is false.