Substitution for UIPickerView with "Optimised Interface for Mac"

I have a storyboard based project with UIPickerView and I like to port it on the Mac with "Optimised Interface for Mac".
My idea was to:
  • In the storyboard disable installation of the UIPickerView for idiom=Mac variation.

  • In the code substitute UIPickerView with SwiftUI Picker.

What I obtained is the error: "UIPickerView is not supported when running Catalyst apps in the Mac idiom".
This error is caused by the SwiftUI Picker (it is present even if remove UIPickerView and all its references).
If both the UIPickerView and the SwiftUI Picker cannot be used in a storyboard based project, how can a generic Picker behaviour be obtained in a storyboard based project compatible with Mac idiom?
  1. Clean All
  2. Set Safe Area
Substitution for UIPickerView with "Optimised Interface for Mac"
 
 
Q