SupplementaryViewInfo

public struct SupplementaryViewInfo : Equatable

Metadata thats required for setting up a supplementary view.

  • The registration info for the supplementary view.

    Declaration

    Swift

    public let registrationInfo: ViewRegistrationInfo
  • The kind of supplementary view (e.g. header or footer)

    Declaration

    Swift

    public let kind: SupplementaryViewKind
  • TableViewDataSource and CollectionViewDataSource will automatically apply an accessibilityIdentifier to the supplementary view based on this format.

    Declaration

    Swift

    public let accessibilityFormat: SupplementaryAccessibilityFormat
  • Initializes the metadata for a supplementary view.

    Declaration

    Swift

    public init(
        registrationInfo: ViewRegistrationInfo,
        kind: SupplementaryViewKind,
        accessibilityFormat: SupplementaryAccessibilityFormat
    )

    Parameters

    registrationInfo

    The registration info for the view.

    kind

    The kind of supplementary view (e.g. header or footer)

    accessibilityFormat

    A format string that generates an accessibility identifier for the view that will be mapped to this view model.