Components/Fitness/Activity Rings
Activity Rings

Activity Rings

NFrom Nibware

Three concentric activity rings with move, exercise and stand goals.

Fitness · 52 lines · SwiftUI · iOS 17+

The actual source

ActivityRings.swift
import SwiftUI

let ftRed = Color(red: 0.98, green: 0.13, blue: 0.35)

let ftGreen = Color(red: 0.52, green: 0.90, blue: 0.16)

let ftBlue = Color(red: 0.12, green: 0.88, blue: 0.92)

extension View {
    func ftCard(_ w: CGFloat, _ pad: CGFloat = 18) -> some View {
        self.padding(pad).frame(width: w)
            .background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 20, style: .continuous))

What it needs

Self-contained SwiftUI - system materials, SF Symbols, no external dependencies. Everything it needs - tokens, sub-views, models - is carried in the copy-paste source above.