KPIProgressItem

public struct KPIProgressItem<Kpi, Subtitle, Footnote> where Kpi : View, Subtitle : View, Footnote : View
extension KPIProgressItem: View

Undocumented

Available where Kpi == Text, Subtitle == _ConditionalContent<Text, EmptyView>, Footnote == _ConditionalContent<Text, EmptyView>

  • Returns a KPIProgress item with given configuration.

    Declaration

    Swift

    init(data: KPIItemData, subtitle: String? = nil, footnote: String? = nil, action: (() -> Void)? = nil)

    Parameters

    data

    The data of the KPIProgress item.

    subtitle

    The subtitle of the KPIProgress item.

    action

    The action when user interacts with the KPIProgress item.

Available where Kpi == _ConditionalContent<Text, EmptyView>, Subtitle == _ConditionalContent<Text, EmptyView>, Footnote == _ConditionalContent<Text, EmptyView>

Available where Kpi == EmptyView

Available where Subtitle == EmptyView

Available where Footnote == EmptyView

Available where Kpi == EmptyView, Subtitle == EmptyView

Available where Kpi == EmptyView, Footnote == EmptyView

Available where Subtitle == EmptyView, Footnote == EmptyView

  • Undocumented

    Declaration

    Swift

    public init(
      @ViewBuilder kpi: () -> Kpi,
    fraction: Double? = nil
      )

Available where Kpi == EmptyView, Subtitle == EmptyView, Footnote == EmptyView

  • Undocumented

    Declaration

    Swift

    public init(
    fraction: Double? = nil
    )