Recently, When adding a Picker in Form or List in SwiftUI, I got unexpected(bigger) Row height as shown in the first image below and what I expect in the second Image:
What I expect
This is my simple code:
import SwiftUI
struct ContentView: View {
@State private var selectedOption: Int = 0
var body: some View {
List {
Picker("Picker Row", selection: $selectedOption) {
ForEach(0..<10) {
Text("($0)")
}
}
}
}
}
What’s wrong here? did Apple changed the default row height for picker or am I missing something?