HeaderChart

public struct HeaderChart
extension HeaderChart: View
extension HeaderChart: _ViewEmptyChecking

HeaderChart is a view that displays an object’s title, subtitle, trend, trend image and kpi.

Usage

HeaderChart {
    Text("title")
} subtitle: {
    Text("subtitle")
} trend: {
    Text("trend")
} trendImage: {
    Image(systemName: "person")
} kpi: {
    Text("KPI View")
} chart: {
    Text("Chart View")
}
  • Undocumented

    Declaration

    Swift

    public init(@ViewBuilder title: () -> any View,
                @ViewBuilder subtitle: () -> any View = { EmptyView() },
                @ViewBuilder trend: () -> any View = { EmptyView() },
                @ViewBuilder trendImage: () -> any View = { EmptyView() },
                @ViewBuilder kpi: () -> any View = { EmptyView() },
                @ViewBuilder chart: () -> any View = { EmptyView() },
                componentIdentifier: String? = HeaderChart.identifier)
  • Convenience initializer for HeaderChart

    Declaration

    Swift

    init(title: String,
         subtitle: AttributedString? = nil,
         trend: AttributedString? = nil,
         trendImage: Image? = nil,
         kpi: KPIItemData? = nil,
         @ViewBuilder chart: () -> any View = { EmptyView() })

    Parameters

    title

    The title string for the header chart.

    subtitle

    The subtitle attributed string for the header chart.

    trend

    The trend attributed string for the header chart.

    trendImage

    The trend image for the header chart.

    kpi

    Data used for KPIItem in header chart.

    chart

    Chart for header chart.

  • Convenience initializer for HeaderChart

    Declaration

    Swift

    init(title: String,
         subtitle: AttributedString? = nil,
         trend: AttributedString? = nil,
         trendImage: Image? = nil,
         kpi: String? = nil,
         @ViewBuilder chart: () -> any View = { EmptyView() })

    Parameters

    title

    The title string for the header chart.

    subtitle

    The subtitle attributed string for the header chart.

    trend

    The trend attributed string for the header chart.

    trendImage

    The trend image for the header chart.

    kpi

    The KPI string of header chart.

    chart

    Chart for header chart.

  • Undocumented

    Declaration

    Swift

    static let identifier: String
  • Undocumented

    Declaration

    Swift

    init(title: AttributedString,
         subtitle: AttributedString? = nil,
         trend: AttributedString? = nil,
         trendImage: Image? = nil,
         kpi: KPIItemData? = nil,
         @ViewBuilder chart: () -> any View = { EmptyView() })
  • Undocumented

    Declaration

    Swift

    init(_ configuration: HeaderChartConfiguration)
  • Declaration

    Swift

    public var body: some View { get }
  • Undocumented

    Declaration

    Swift

    public var isEmpty: Bool { get }