set(_:)
Updates the element with identifier matching the provided value’s identifier.
Declaration
@discardableResult mutating func set(_ newValue: IKRig.ConstraintsCollection.Element) -> IKRig.ConstraintsCollection.Element?Parameters
- newValue:
The new element value to store.
Return Value
The previous element value if the identifier exists, nil otherwise.
Discussion
If an element with the provided identifier is not contained, adds a new one.