CreationKit Documentation

Class Upcoming​Visit​Card​Header.​Configuration

public class Configuration: ObservableObject  
UpcomingVisitCardHeader.Configuration UpcomingVisitCardHeader.Configuration ObservableObject ObservableObject UpcomingVisitCardHeader.Configuration->ObservableObject

Member Of

UpcomingVisitCardHeader

Conforms To

ObservableObject

Initializers

init(color​Provider:​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

color​Provider

@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.

text

@Published public var text: String

The text to display in the header.