The Picker has been around since iOS 2 and is known as the UIPickerView in UIKit. It joined SwiftUI in iOS 13 as “Picker”. As well as the Picker view, there is also the DatePicker view that you will also be familiar with using in apps.
The regular Picker also has a modifier called .pickerStyle that you can attach to that view where you can pass in various picker styles that conform to the PickerStyle protocol. In this tutorial we’ll look over some of these to show you ways how you might provide ways for your users to input the required information.
[Read more…]