SweetUI

Search items

Jump to an item

component

macro-progress

Nutrition progress via ProgressView.

nutritionhealthprogressmacronutrients
macro-progress, light

On iPad

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

macro-progress on iPad, light

Install

With the sweetui tool (brew install mangobyte-dev/tap/sweetui):

sweetui install macro-progress --destination Sources/YourFeature/Components

Installs 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

Kindcomponent
Version0.4.1
PlatformsiOS 26.0+
Dependenciesnone
SourceRegistry/sources/components/MacroProgress.swift
Xcode previewMacro Progress