title: UIDatePicker Not working In macCatalyst (Xcode 11 Beta 5)
body: <p>We are converting our iOS app to macCatalyst compatible using catalyst swift in xcode 11 beta 5.</p>
  
  <p>We have facing issue that default DatePicker not shown in window.</p>
  
  <p>I am trying this solution for mac and it will add date picker in view but i want another proper solution. Any other suggestion?</p>
  
  <pre><code>func datepickerWillLoad() {
          self.datePicker.datePickerMode = .date
          self.datePicker.maximumDate = Date()
          self.datePicker.backgroundColor = UIColor.Theme.lightBackground
          self.datePicker.setValue(UIColor.Theme.whiteColor, forKeyPath: "textColor")
          self.datePicker.addTarget(self, action: #selector(didChangedDatePickerValue), for: .valueChanged)
  
          //if user open picker and without change click on done
          self.dateOfBirthTextField.addTarget(self, action: #selector(didChangedDatePickerValue), for: .editingDidEnd)
  
          #if targetEnvironment(macCatalyst)
              datePicker.frame = CGRect(x: 0, y: self.view.frame.height - 200 , width: self.view.frame.width, height: 200)
              self.view.addSubview(datePicker)
          #else
              self.dateOfBirthTextField.inputView = datePicker
          #endif
      }
  </code></pre>