Skip to content

Date Selector Doesn't handle iOS 13 dark mode #87

@chris-hut

Description

@chris-hut

Hello friend!

We've noticed that on iOS 13 with Dark Mode enabled, the selector is invisible:
IMG_3737B3100AAE-1

I've gotten this to work for me by adding a:

if #available(iOS 13.0, *) {
    actionController.overrideUserInterfaceStyle = .light
}

Right before presenting calendar selector!

I also notice that I can't seem to set the style to anything dark, I was going to add a

if #available(iOS 13.0, *) {
  puts("!: we are 13")
  if self.webViewController?.traitCollection.userInterfaceStyle == .dark {
       puts("!: We are dark")
      style = RMActionControllerStyle.black
   }
}
// then initialize the actionController
let actionController: RMDateSelectionViewController = RMDateSelectionViewController(style: style)!

However, even hardcoding it to .black seems to make keep it white!

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