
Date Confirm
From syxUI — written for both platforms, not translated between them.
A selected date-time confirmation.
Inputs · SwiftUI · iOS 17
- inputs
- swiftui
The actual source
PickerConfirm.swift
// Date Confirm · syxUI · https://syxui.dev/components/picker-confirm
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
let pkGreen = Color(red: 0.16, green: 0.66, blue: 0.40)
struct PickerConfirm: View { var body: some View { VStack(spacing: 12) { Image(systemName: "calendar.badge.checkmark").font(.system(size: 30)).foregroundStyle(pkGreen); VStack(spacing: 3) { Text("Friday, July 24").font(.system(size: 17, weight: .bold)); Text("2:30 PM – 3:30 PM PST").font(.system(size: 14)).foregroundStyle(.secondary) }; Text("Confirm").font(.system(size: 16, weight: .semibold)).foregroundStyle(.white).frame(maxWidth: .infinity).padding(.vertical, 13).background(pkGreen, in: RoundedRectangle(cornerRadius: 12, style: .continuous)) }.padding(18).frame(width: 280).background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 18, style: .continuous)).overlay(RoundedRectangle(cornerRadius: 18, style: .continuous).stroke(Color.primary.opacity(0.06), lineWidth: 1)).shadow(color: .black.opacity(0.05), radius: 12, y: 4) } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


