CreationKit Documentation

Structure ToDoCard​Header

public struct ToDoCardHeader: View  
ToDoCardHeader ToDoCardHeader View View ToDoCardHeader->View

Conforms To

View

Initializers

init(color​Provider:​image:​title:​date:​)

public init(colorProvider: ColorProvider.Type, image: ImageAsset? = nil, title: String, date: Date)  

Properties

color​Provider

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

@State public var image: ImageAsset? 

An image to display on the left side of the header. Provide nil if you want to hide the image.

title

@State public var title: String

The text to display in the header.

date

@State public var date: Date

The date to display in the header.

body

public var body: some View