Components/Pricing/Plan Confirmation
Plan Confirmation

Plan Confirmation

NFrom Nibware

A dark plan-confirmation overview with subtotal and total lines.

Pricing · 37 lines · SwiftUI · iOS 17+

The actual source

PlanConfirmation.swift
import SwiftUI

func prButton(_ label: String, bg: Color, fg: Color = .white, radius: CGFloat = 12, size: CGFloat = 16) -> some View {
    Text(label).font(.system(size: size, weight: .semibold)).foregroundStyle(fg).frame(maxWidth: .infinity).padding(.vertical, 15).background(bg, in: RoundedRectangle(cornerRadius: radius, style: .continuous))
}

/// Cosmos - dark "Overview / Confirm your plan": two radio rows + subtotal/total, light CTA.
struct PricingCosmos: View {
    let green = Color(red: 0.56, green: 0.72, blue: 0.31)
    func row(_ title: String, _ price: String, _ sel: Bool) -> some View {
        HStack(spacing: 12) {
            Image(systemName: sel ? "largecircle.fill.circle" : "circle").font(.system(size: 20)).foregroundStyle(sel ? Color.white : Color.white.opacity(0.4))

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.