Structure
CardHeaderConfiguration
public struct CardHeaderConfiguration
A struct to configure CardHeaders with.
Initializers
init(colorProvider:image:text:moreTapped:)
public init(colorProvider: ColorProvider.Type, image: UIImage? = nil, text: String? = nil, moreTapped: (() -> Void)?)
Creates a new configuration.
Parameters
Name | Type | Description |
---|---|---|
colorProvider | ColorProvider.Type |
Styles the header with a color. Different parts of the header use a slightly different color, so providing a ColorProvider will allow the configuration to style the header correctly. |
image | UIImage? |
An image to display on the left side of the header. Provide nil if you want to hide the image. |
text | String? |
The text to display in the header. Provide nil if you want to hide the text. |
moreTapped | (() -> Void)? |
The closure that will be called when the more control is tapped. Provide nil if you want to hide the more control. |