Skip to content

can set ActionSheetDatePicker text color? #582

@hendrathings

Description

@hendrathings

Screenshot 2024-09-26 at 7 40 41 PM

Here the code

    let picker = ActionSheetDatePicker(
        title: "Jam",
        datePickerMode: UIDatePicker.Mode.time,
        selectedDate: self.selectedTimeDate.date,
        target: self,
        action: #selector(EventFormViewController.timePicked(_:)),
        origin: self.view
    )
    
    picker?.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white]
    picker?.pickerBackgroundColor = UIColor.black
    picker?.toolbarBackgroundColor = UIColor.black
    picker?.setTextColor(UIColor.white)
    picker?.toolbarButtonsColor = UIColor.blue
    
    picker?.show()

is there any chance to change to text color on light theme?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions