ValuePicker

public struct ValuePicker
extension ValuePicker: View
extension ValuePicker: _ViewEmptyChecking

ValuePicker provides a title and value label with Fiori styling and a wheel-stylePicker.

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

 ValuePicker(title: "Picker Title(Default Style)", isRequired: self.isRequired, options: self.valueOptions, selectedIndex: self.$selectedIndex, isTrackingLiveChanges: self.isTrackingLiveChanges)
   .informationView(isPresented: self.$showsErrorMessage, description: AttributedString("Please choose one available data"))
   .informationViewStyle(.informational)