KPIItem

public struct KPIItem<Kpi, Subtitle> where Kpi : View, Subtitle : View
extension KPIItem: View

Undocumented

  • Undocumented

    Declaration

    Swift

    public init(
          @ViewBuilder kpi: () -> Kpi,
    @ViewBuilder subtitle: () -> Subtitle
          )
  • Declaration

    Swift

    public var body: some View { get }

Available where Kpi == Text, Subtitle == Text

  • Returns a KPI item with given configuration.

    Declaration

    Swift

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

    Parameters

    data

    The data of the KPI item.

    subtitle

    The subtitle of the KPI item.

    action

    The action when user interacts with the KPI item.

Available where Kpi == Text, Subtitle == EmptyView

  • Returns a KPI item with given configuration.

    Declaration

    Swift

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

    Parameters

    data

    The data of the KPI item.

    action

    The action when user interacts with the KPI item.

  • Undocumented

    Declaration

    Swift

    init(_ data: KPIItemData?)

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

Available where Kpi == EmptyView

Available where Subtitle == EmptyView

  • Undocumented

    Declaration

    Swift

    public init(
    @ViewBuilder kpi: () -> Kpi
    )

Available where Kpi == EmptyView, Subtitle == EmptyView

  • Undocumented

    Declaration

    Swift

    public init(
    
    )