Instance MethodSwift

    applying(_:)

    Applies the given difference to this collection.

    • iOS 13.0+
    • macOS 10.15+
    • tvOS 13.0+
    • watchOS 6.0+
    func applying(_ difference: CollectionDifference<Self.Element>) -> Self?

    Parameters

    difference

    The difference to be applied.

    Returns

    An instance representing the state of the receiver with the difference applied, or nil if the difference is incompatible with the receiver’s state.

    Overview