component
macro-progress
Nutrition progress via ProgressView.
nutritionhealthprogressmacronutrients

On iPad
The same installed source at a regular width. It adapts its layout without a separate design.


Install
With the sweetui tool (brew install mangobyte-dev/tap/sweetui):
sweetui install macro-progress --destination Sources/YourFeature/ComponentsInstalls in order: macro-progress 0.4.1. Point --destination at a folder inside the consuming target's sources.
Usage
MacroProgress(
"Protein",
value: Text("96 g"),
target: Text("130 g"),
progress: 96.0 / 130.0,
systemImage: "fish.fill"
)
.registryTint(.indigo)Accessibility contract
- Native semantics.
- Width-limited: ViewThatFits moves values below label.
- One localized phrase.
- No tint-alone meaning.
Details
| Kind | component |
| Version | 0.4.1 |
| Platforms | iOS 26.0+ |
| Dependencies | none |
| Source | Registry/sources/components/MacroProgress.swift |
| Xcode preview | Macro Progress |