
Date Field
From syxUI — written for both platforms, not translated between them.
A compact date field.
Inputs · SwiftUI · iOS 17
- inputs
- swiftui
The actual source
PickerDateField.swift
// Date Field · syxUI · https://syxui.dev/components/picker-date-field
// 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)
struct PickerDateField: View { var body: some View { HStack(spacing: 10) { Image(systemName: "calendar").font(.system(size: 16)).foregroundStyle(pkBlue); Text("Jul 24, 2026").font(.system(size: 16)); Spacer(); Image(systemName: "chevron.down").font(.system(size: 12)).foregroundStyle(.secondary) }.padding(.horizontal, 14).padding(.vertical, 13).overlay(RoundedRectangle(cornerRadius: 12, style: .continuous).stroke(Color.primary.opacity(0.15), lineWidth: 1)).frame(width: 280) } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


