removeAll() Removes all components from the collection. Declaration@MainActor @preconcurrency func removeAll() See AlsoUpdating the setset(_:)set(_:)remove(_:)