NavigationLinkPickerStyle

A picker style represented by a navigation link that presents the options by pushing a List-style picker view.

StructureiOS 16.0+tvOS 16.0+watchOS 9.0+NavigationLinkPickerStyle in SwiftUI

Declaration

React
type NavigationLinkPickerStyle = SwiftOpaque<'NavigationLinkPickerStyle'>;
Swift
struct NavigationLinkPickerStyle

Overview

In navigation stacks, prefer the default PickerStyle.menu style. Consider the navigation link style when you have a large number of options or your design is better expressed by pushing onto a stack.

You can also use PickerStyle.navigationLink to construct this style.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Styles.