Type Property 型プロパティ

menu

A picker style that presents the options as a menu when the user presses a button, or as a submenu when nested within a larger menu.

Declaration 宣言

static var menu: MenuPickerStyle { get }
Available when Self is MenuPickerStyle.

Discussion 議論

Use this style when there are more than five options. Consider using inline 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 pickerStyle(_:) modifier.

See Also 参照

Getting Built-in Picker Styles