
Day Agenda
From syxUI — written for both platforms, not translated between them.
A day agenda with events.
Inputs · SwiftUI · iOS 17
- inputs
- swiftui
The actual source
PickerDayView.swift
// Day Agenda · syxUI · https://syxui.dev/components/picker-day-view
// 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 PickerDayView: View { var body: some View { VStack(alignment: .leading, spacing: 0) { ForEach(Array([("9 AM", true, "Team standup"), ("10 AM", false, ""), ("11 AM", true, "Design review"), ("12 PM", false, "")].enumerated()), id: \.offset) { _, h in HStack(alignment: .top, spacing: 12) { Text(h.0).font(.system(size: 12)).foregroundStyle(.secondary).frame(width: 42, alignment: .trailing); VStack(spacing: 0) { if h.1 { Text(h.2).font(.system(size: 13, weight: .medium)).foregroundStyle(pkBlue).frame(maxWidth: .infinity, alignment: .leading).padding(8).background(pkBlue.opacity(0.12), in: RoundedRectangle(cornerRadius: 8)) } else { Divider() } } }.frame(height: 44) } }.formaCard().frame(width: 300) } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


