init()
Creates a pop-up button picker style.
Deprecated 非推奨
Use Menu
instead.
Availability 有効性
Technology
struct PopUpButtonPickerStyle
Use this style when there are more than five options. Consider using Radio
when there are fewer than five options.
The button itself indicates the selected option. You can include additional controls in the set of options, such as a button to customize the list of options.
To apply this style to a picker, or to a view that contains pickers, use the picker
modifier.
init()
struct DefaultPickerStyle
struct InlinePickerStyle
PickerStyle
where each option is displayed inline with other views in the current container.struct MenuPickerStyle
struct RadioGroupPickerStyle
struct SegmentedPickerStyle
struct WheelPickerStyle