0

When the user selects the "Yes" button I want to show the activated DatePicker programmatically and then once they've selected a date to show the only the DatePicker in its non-presented state instead of the "Yes" button.

How can I programmatically display the DatePicker and switch it with the "Yes" button?

Date Selection

Collin
  • 6,720
  • 4
  • 26
  • 29
  • What have you tired? Without a [Minimal Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) it is impossible to help you troubleshoot. – lorem ipsum Jan 25 '21 at 22:01
  • It's impossible in iOS 14 - similar question [How to make a button (or any other element) show SwiftUI's DatePicker popup on tap?](https://stackoverflow.com/q/65797437/8697793) – pawello2222 Jan 26 '21 at 11:30

0 Answers0