如何在SwiftUI中使DatePicker日期的字体变小?
struct TestView: View {
@State private var eventDate = Date()
var body: some View {
ZStack {
Color(.purple).edgesIgnoringSafeArea(.all)
VStack {
Section {
DatePicker("Event Date", selection: $eventDate, in: ...Date())
.labelsHidden()
}
}
}
}
}