Section

public struct Section<Model, Element> : DifferentiableSection where Model : Differentiable, Element : Differentiable

A generic differentiable section.

Arrays are can not be identify each one and comparing whether has updated from other one. Section is a generic wrapper to hold a model and elements to allow it.

  • The model of section for differentiated with other section.

    Declaration

    Swift

    public var model: Model
  • The array of element in the section.

    Declaration

    Swift

    public var elements: [Element]
  • Creates a section from the model and the elements.

    Declaration

    Swift

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

    Parameters

    model

    A model of section.

    elements

    The collection of element in the section.

  • Declaration

    Swift

    public static func == (lhs: Section, rhs: Section) -> Bool
  • Declaration

    Swift

    public var debugDescription: String { get }