
Time Field
From syxUI — written for both platforms, not translated between them.
A compact time field.
Inputs · SwiftUI · iOS 17
- inputs
- swiftui
The actual source
PickerTimeField.swift
// Time Field · syxUI · https://syxui.dev/components/picker-time-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 PickerTimeField: View { var body: some View { HStack(spacing: 10) { Image(systemName: "clock").font(.system(size: 16)).foregroundStyle(pkBlue); Text("2:30 PM").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: 240) } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


