How to use Picker to create a segmented control
A SwiftUI Picker view is a control that lets you pick a value from a set of...
Picker is a SwiftUI multi-purpose view that displays control to pick a value from a list of options. It can be used for navigation, filters, or in forms.