DifferentiableSection

public protocol DifferentiableSection

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

  • A type representing the model for differentiated with other section.

    Declaration

    Swift

    associatedtype Model : Differentiable
  • A type representing the elements in section.

    Declaration

    Swift

    associatedtype Collection : Collection where Self.Collection.Element : Differentiable
  • The model of section for differentiated with other section.

    Declaration

    Swift

    var model: Model { get }
  • The collection of element in the section.

    Declaration

    Swift

    var elements: Collection { get }
  • Creates a section from the model and the elements.

    Declaration

    Swift

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

    Parameters

    model

    A model of section.

    elements

    The collection of element in the section.