How to add Date Picker to TextField that works with Mac Catalyst.

I currently have an iPad app that I am attempting to compile to Mac (macOS 10.15) in XCode 11.5. It uses code similar to code found here (https://programmingwithswift.com/add-uidatepicker-in-a-uitextfield-with-swift/). The problem is, that when compiled to Mac, and run on the Mac, it does not work for Mac.


Any suggestions?

I am facing same issue. Could you get solution for this?
How to add Date Picker to TextField that works with Mac Catalyst.
 
 
Q