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.ElementParameters
sourceA source section to reproduce.
elementsThe collection of elements for the new section.
View on GitHub
DifferentiableSection Protocol Reference