MacOS SwiftUI reduce the size of the Picker

Viewed 17

Result I would like to achieve: enter image description here

Result I get: enter image description here

As you can see from the images, in the first image the Picker is much smaller (Size of the darts, maybe you don't notice that much, but that's what's on xcode).

This is the code I am using:

Picker("", selection: $inspectorModel.indentUsingSelection) {
            ForEach(inspectorModel.indentUsingList) {
                Text($0.name)
                    .font(.system(size: 11))
            }
}
.labelsHidden()

Can you give me a hand?

0 Answers
Related