OCProgressCard: UI Component
OCProgressCard
is a customizable info card view component with a progress bar embedded in it with animation capabilities.
Features
- Its an information card with a progress component
- The progress bar will be animated on appear from 0 to the current levels set
- Styles for the component can be customized using a style object
Parameters:
title: String
- Title for the progress cardhighlightedDescription: String
- Highlighted description shown in large textcaption: String
- Text after the Highlighted descriptioncurrentProgress: Double
- Current progress level for the progress bartotalProgress: Double
- Maximum progress level for the progress barstyle: OCProgressCardStyle
- Style elements for the view
OCProgressCard(
title: "Dein Bonus aus AOK NAVIDA",
highlightedDescription: "500 Punkte",
caption: "von 6000 Punkten",
currentProgress: 3000,
totalProgress: 6000,
style: OCProgressCardStyle()
)
.padding(OCConstants.UIComponent.padding24)