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
orfooter
)Declaration
Swift
public let kind: SupplementaryViewKind
-
TableViewDataSource
andCollectionViewDataSource
will automatically apply anaccessibilityIdentifier
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
orfooter
)accessibilityFormat
A format string that generates an accessibility identifier for the view that will be mapped to this view model.