You can use .accentColor()
DatePicker(selection: $fromDate.onChange(self.setFromDate(fromdate:)), in: ...Date(), displayedComponents: .date) {
Text("From")
.font(.body)
.foregroundColor(.black)
.fixedSize()
}
.accentColor(Color.black)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…