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 cardcardType: Type of examination card either small or largestyle: 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()
}
}