Is there a way to create a NSComboBox in SwiftUI?
When I use Picker, a NSPopUpButton is created under MacOS.
I've tried this:
var body: some View {
Picker("Test:", selection: $selected) {
ForEach(1..<10) { i in
Text(String(i))
}
}
.padding()
}
But this will get me this:
But I need a ComboBox where I can enter text as well as select from a list.
Is this even possible with SwiftUI without integrating an NSComboBox as NSViewRepresentable.
I've already check the following question: SwiftUI Custom Picker / ComboBox But it's about a customised picker and not about a NSComboBox.
