Customizing Date Picker

Hi,

Is it possible to change font color of dark text in DatePicker in SwiftUI ? Also can we change size of arrows on top right ?

Kind Regards

Answered by DTS Engineer in 803764022

[@Ammar S. Mitoori](https://developer.apple.com/forums/profile/Ammar S. Mitoori) DatePickerStyle has a few built in picker styles you could choose from. The alternative is for you to create a custom date picker style by implementing the DatePickerStyle and customize that to suite your use case.

Accepted Answer

[@Ammar S. Mitoori](https://developer.apple.com/forums/profile/Ammar S. Mitoori) DatePickerStyle has a few built in picker styles you could choose from. The alternative is for you to create a custom date picker style by implementing the DatePickerStyle and customize that to suite your use case.

Apart from the customs built in date-picker styles. You could implement your own representation of DatePickerStyle protocol. For example:

struct CustomDatePickerStyle: DatePickerStyle {
    func makeBody(configuration: Configuration) -> some View {
        ///
    }
}
Customizing Date Picker
 
 
Q