hsylife / SwiftyPickerPopover

A more convenient way to display a popover with a built-in picker, on iPhone/iPad of iOS9+.
MIT License
652 stars 97 forks source link

Dark Theme #115

Open douglas-srs opened 5 years ago

douglas-srs commented 5 years ago

Is it possible to implement a darker theme where background is black and font is white?

darklord-dan commented 4 years ago

Hi, this may not be needed now but if you edit AbstractPickerPopoverViewController:

Change open override func viewWillAppear... by adding the below after: refrectPopoverProperties()

// Dark mode support if #available(iOS 13.0, *) { view.backgroundColor = .systemBackground } else { // Fallback on earlier versions view.backgroundColor = .white }

daviddelmonte commented 4 years ago

Thanks everyone!

daviddelmonte commented 4 years ago

I note there is a similar issue in ColumnStringPicker, and in all the StringPickers. I'm checking for other issues.