Updater

public protocol Updater

Represents an updater that manages the updation for target.

  • A type that represents a target to be updated for render given data.

    Declaration

    Swift

    associatedtype Target : AnyObject
  • A type that represents an adapter holding the data to be rendered.

    Declaration

    Swift

    associatedtype Adapter : Adapter
  • Prepares given target and adapter.

    Declaration

    Swift

    func prepare(target: Target, adapter: Adapter)

    Parameters

    target

    A target to be prepared.

    adapter

    An adapter to be prepared.

  • Perform updates to render given data to the target.

    Declaration

    Swift

    func performUpdates(target: Target, adapter: Adapter, data: [Section])

    Parameters

    target

    A target instance to be updated to render given data.

    adapter

    An adapter holding currently rendered data.

    data

    A collection of sections to be rendered next.