Picker
A control for selecting from a set of mutually exclusive values. SwiftWeb currently only implements the SegmentedPickerStyle
for Picker
.
-
Creates an instance that selects from content associated with
Selection
values.Declaration
Swift
public init<S>(_ title: S, selection: Binding<SelectionValue>, @ViewBuilder content: () -> Content) where S: StringProtocol
-
Declaration
Swift
public var body: some View { get }
-
Sets the style for pickers within this view.
Declaration
Swift
func pickerStyle<S>(_ style: S) -> some View where S : PickerStyle