Skip to content
Multi-Step preview
Rendered from the SwiftUI source on this page.

Multi-Step

From syxUI — written for both platforms, not translated between them.

A multi-step progress tracker.

Loaders · SwiftUI · iOS 17

  • loaders
  • swiftui

The actual source

MultiStepLoader.swift
// Multi-Step · syxUI · https://syxui.dev/components/loader-multistep
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

let ldBlue = Color(red: 0.0, green: 0.47, blue: 1.0)

struct MultiStepLoader: View { var body: some View { HStack(spacing: 0) { ForEach(0..<3, id: \.self) { i in ZStack { Circle().fill(i <= 1 ? ldBlue : Color.primary.opacity(0.1)).frame(width: 28, height: 28); if i < 1 { Image(systemName: "checkmark").font(.system(size: 12, weight: .bold)).foregroundStyle(.white) } else { Text("\(i + 1)").font(.system(size: 13, weight: .bold)).foregroundStyle(i == 1 ? .white : .secondary) } }; if i < 2 { Rectangle().fill(i < 1 ? ldBlue : Color.primary.opacity(0.12)).frame(width: 60, height: 2) } } }.frame(width: 240) } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17