ValuePicker
ValuePicker
provides a title and value label with Fiori styling and a wheel-style Picker
.
Usage
let valueOptions :[AttributedString] = ["1", "20", "300"]
@State var selectedIndex: Int = 0
@State var isRequired = false
@State var stateIndex: Int = 0
@State var isTrackingLiveChanges = true
@State var showsErrorMessage = false
-
init(title:
valueLabel: options: selectedIndex: isTrackingLiveChanges: alwaysShowPicker: controlState: componentIdentifier: ) Undocumented
Declaration
Swift
public init(@ViewBuilder title: () -> any View, @ViewBuilder valueLabel: () -> any View = { EmptyView() }, options: [AttributedString] = [], selectedIndex: Binding<Int>, isTrackingLiveChanges: Bool = true, alwaysShowPicker: Bool = false, controlState: ControlState = .normal, componentIdentifier: String? = ValuePicker.identifier)
-
Undocumented
Declaration
Swift
static let identifier: String
-
init(title:
valueLabel: mandatoryFieldIndicator: isRequired: options: selectedIndex: isTrackingLiveChanges: alwaysShowPicker: controlState: ) Undocumented
Declaration
Swift
init(title: AttributedString, valueLabel: AttributedString? = nil, mandatoryFieldIndicator: TextOrIcon? = .text("*"), isRequired: Bool = false, options: [AttributedString] = [], selectedIndex: Binding<Int>, isTrackingLiveChanges: Bool = true, alwaysShowPicker: Bool = false, controlState: ControlState = .normal)
-
Undocumented
Declaration
Swift
init(_ configuration: ValuePickerConfiguration)
-
Declaration
Swift
public var body: some View { get }
-
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }