ReusableViewConfiguring

public protocol ReusableViewConfiguring

If matching, it is able to configure the view with the object.

Note

Dequeuing a view is not part of configuration.
  • The reusable view type which should be configured.

    Declaration

    Swift

    associatedtype View
  • The Object type which should configure the reusable view.

    Declaration

    Swift

    associatedtype Object
  • The type of the reusable view.

    Declaration

    Swift

    var type: ReusableViewType { get }
  • The reuse identifier for the given object which will be used deque the view.

    Declaration

    Swift

    func reuseIdentifier(for object: Object) -> String

    Parameters

    object

    the object

    Return Value

    reuse identifier which fits to object

  • Configures the given view with at the index path with the given object.

    Declaration

    Swift

    func configure(_ view: View, at indexPath: IndexPath, with object: Object)

    Parameters

    view

    the view to configure

    indexPath

    index path of the view

    object

    the object which relates to the view