TableViewHeaderFooterView
A reusable view that you place at the top or bottom of a table section to display additional information for that section.
public class TableViewHeaderFooterView: View
Inheritance
Initializers
init(reuseIdentifier:)
Initializes a header/footer view with the specified reuse identifier.
public init(reuseIdentifier identifier: String?)
Properties
reuseIdentifier
A string used to identify a reusable header or footer.
public private(set) var reuseIdentifier: String?
backgroundConfiguration
The current background configuration of the view.
public var backgroundConfiguration: BackgroundConfiguration?
automaticallyUpdatesBackgroundConfiguration
A boolean value that determines whether the view automatically updates its background configuration when its state changes.
public var automaticallyUpdatesBackgroundConfiguration: Bool = true
backgroundView
The background view of the header or footer.
public var backgroundView: View?
contentConfiguration
The current content configuration of the view.
public var contentConfiguration: ContentConfiguration?
automaticallyUpdatesContentConfiguration
A boolean value that determines whether the view automatically updates its content configuration when its state changes.
public var automaticallyUpdatesContentConfiguration: Bool = true
contentView
The content view of the header or footer.
public private(set) var contentView: View
configurationState
The current configuration state of the view.
public private(set) var configurationState: ViewConfigurationState
Methods
prepareForReuse()
Prepares a reusable header or footer view for reuse by the table.
public func prepareForReuse()
defaultContentConfiguration()
Retrieves a default list content configuration for the view’s style.
public func defaultContentConfiguration() -> ListContentConfiguration
setNeedsUpdateConfiguration()
Informs the view to update its configuration for its current state.
public func setNeedsUpdateConfiguration()
updateConfiguration(using:)
Updates the view’s configuration using the current state.
public func updateConfiguration(using state: ViewConfigurationState)