Multi-Component Picker (UIPickerView) in SwiftUI
问题 I'm trying to add a three-component Picker (UIPickerView) to a SwiftUI app (in a traditional UIKit app, the data source would return 3 from the numberOfComponents method), but I can't find an example of this anywhere. I've tried adding an HStack of three single-component Pickers, but the perspective is off from what it would be if they were all part of a single Picker. 回答1: Updated answer in pure SwiftUI - in this example the data is of type String . Tested on Xcode 11.1 - may not work on