Class
UpcomingVisitCardHeader.Configuration
public class Configuration: ObservableObject
Relationships
Member Of
UpcomingVisitCardHeader
Conforms To
ObservableObject
Initializers
init(colorProvider:image:text:)
public init(
colorProvider: ColorProvider.Type = Blue.self,
image: ImageAsset? = Asset.Action.iconCalendar,
text: String = "Upcoming Visit"
)
Creates a new header for Upcoming Visits
Properties
colorProvider
@Published public var 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
@Published public var image: ImageAsset?
An image to display on the left side of the header. Provide nil if you want to hide the image.