Skip to main content
Version: 12.10.0

OCExaminationCard: UI component

The OCExaminationCard card is used in the Vorsorgemanager to show the state of the checkup. There are two size variants: large: to be used within the plugin small: to be shown outside the plugin

Features

  • User can pass the desired details to show like title, description.
  • In style, user can change card state like checkPending, dueLater, dueSoon, done and overDue status.

Card State:

  • checkPending
  • dueLater
  • dueSoon
  • done
  • overDue

Parameters:

  • title : Title of examination card.
  • description : Description of examination card.
  • pillTitle : Text for pill.
  • cardState : State of examination card
  • cardType : Type of examination card either small or large
  • style : Style for an examination card title, description and background color
import SwiftUI

struct ContentView: View {

var body: some View {
VStack {
OCExaminationCard(title: "Title",
description: "Description",
pillTitle: "pillTitle",
cardType: .large,
cardState: .dueSoon)
}.padding()
}
}