title: Change UIDatePicker selected Date text Color for Dark mode (iOS 13)
body: <p>Having trouble to find out a solution for changing the color of text for the selected Date in iOS 13 dark mode.</p>
  
  <p>I know how to change the color of the text of a UIPicker view using code</p>
  
  <pre><code>self.timePicker.setValue(UIColor.black, forKeyPath: "textColor")
  </code></pre>
  
  <p>OR using User Defined Runtime Attributes. But nothing is working for changing the selected date color for iOS 13 Dark mode. With background white color and black text color, my date picker-view looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/dNgJf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dNgJf.png" alt="enter image description here"></a></p>
  
  <p>So with changing the text color black, does not change the selected date text color. It changes all the other text color to black; but not the selected one. Selected one stays white, which is default for dark mode.</p>