Skip to content
Coach + Progress preview
Rendered from the SwiftUI source on this page.

Coach + Progress

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

A coach mark with a progress bar.

Feedback · SwiftUI · iOS 17

  • feedback
  • swiftui

The actual source

CoachmarkProgress.swift
// Coach + Progress · syxUI · https://syxui.dev/components/tip-coach-progress
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

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

struct CoachmarkProgress: View { var body: some View { VStack(alignment: .leading, spacing: 10) { Text("Customize your feed").font(.system(size: 15, weight: .semibold)); Text("Pick topics you care about to personalize what you see.").font(.system(size: 13)).foregroundStyle(.secondary); GeometryReader { g in ZStack(alignment: .leading) { Capsule().fill(Color.primary.opacity(0.1)).frame(height: 4); Capsule().fill(ttBlue).frame(width: g.size.width * 0.4, height: 4) } }.frame(height: 4); HStack { Text("Skip").font(.system(size: 14)).foregroundStyle(.secondary); Spacer(); Text("Continue").font(.system(size: 14, weight: .semibold)).foregroundStyle(.white).padding(.horizontal, 16).padding(.vertical, 8).background(ttBlue, in: Capsule()) } }.padding(16).frame(width: 290).background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 16, style: .continuous)).overlay(RoundedRectangle(cornerRadius: 16, style: .continuous).stroke(Color.primary.opacity(0.06), lineWidth: 1)).shadow(color: .black.opacity(0.06), radius: 12, y: 4) } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17