Skip to content
Scheduler preview
Rendered from the SwiftUI source on this page.

Scheduler

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

A date + time booking scheduler.

Inputs · SwiftUI · iOS 17

  • inputs
  • swiftui

The actual source

PickerScheduler.swift
// Scheduler · syxUI · https://syxui.dev/components/picker-scheduler
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

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

extension View {
    func formaCard(_ pad: CGFloat = 18) -> some View {
        self.padding(pad)
            .background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 20, style: .continuous))
            .overlay(RoundedRectangle(cornerRadius: 20, style: .continuous).stroke(Color.primary.opacity(0.06), lineWidth: 1))
            .shadow(color: .black.opacity(0.05), radius: 14, x: 0, y: 6)
    }
}

struct PickerScheduler: View { var body: some View { VStack(spacing: 12) { HStack(spacing: 10) { Image(systemName: "calendar").foregroundStyle(pkBlue); Text("Jul 24, 2026").font(.system(size: 15)); Spacer(); Image(systemName: "chevron.down").font(.system(size: 12)).foregroundStyle(.secondary) }.padding(14).overlay(RoundedRectangle(cornerRadius: 12).stroke(Color.primary.opacity(0.15))); HStack(spacing: 10) { Image(systemName: "clock").foregroundStyle(pkBlue); Text("2:30 PM").font(.system(size: 15)); Spacer(); Image(systemName: "chevron.down").font(.system(size: 12)).foregroundStyle(.secondary) }.padding(14).overlay(RoundedRectangle(cornerRadius: 12).stroke(Color.primary.opacity(0.15))); Text("Confirm Booking").font(.system(size: 16, weight: .semibold)).foregroundStyle(.white).frame(maxWidth: .infinity).padding(.vertical, 13).background(pkBlue, in: RoundedRectangle(cornerRadius: 12, style: .continuous)) }.formaCard().frame(width: 300) } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17