DifferentiableSection

public protocol DifferentiableSection : Differentiable

Represents the section of collection that can be identified and compared to whether has updated.

  • A type representing the elements in section.

    Declaration

    Swift

    associatedtype Collection : Collection where Self.Collection.Element : Differentiable
  • The collection of element in the section.

    Declaration

    Swift

    var elements: Collection { get }
  • Creates a new section reproducing the given source section with replacing the elements.

    Declaration

    Swift

    init<C>(source: Self, elements: C) where C : Collection, C.Element == Self.Collection.Element

    Parameters

    source

    A source section to reproduce.

    elements

    The collection of elements for the new section.