SwiftUI Picker options add padding tvOS

Viewed 11

It seems like there's no way to modify the Picker options view's paddings. I tried different solutions from adding the padding to the enclosing NavigationView to the TextView inside the ForEach of the Picker view itself. Any clue?

enter image description here

enter image description here

Here's the view hierarchy:

NavigationView {
        VStack {
            Text("Debug settings")
                .font(.sans(.title2))

            Spacer()
                .frame(height: 56)

            List {

                Section(header: Text("Environments").font(.sans(.body))) {
                    Picker("Environment", selection: $selectedEnvironment) {
                        ForEach(Constants.Environment.allCases) { environment in
                            Text(environment.rawValue.capitalized).tag(Optional<String>(environment.host))
0 Answers
Related