EnterpriseDS Documentation

Structure DSUISelect​Cell

@available(iOS 13.0, tvOS 13.0, *)
public struct DSUISelectCell: View  

An Enterprise-styled option selection element for use in SwiftUI views.

Initialize and set parameters as needed.

DSUISelectCell(labelText: selectShowcaseConfig.items[index].placeHolder,
               helperText: selectShowcaseConfig.items[index].helper,
               options: foodOptions,
               value: $selectShowcaseConfig.items[index].value,
               validationRules: selectShowcaseConfig.items[index].validationRules,
               shouldUpdateValidationAppearance: true)
DSUISelectCell DSUISelectCell View View DSUISelectCell->View

Conforms To

View

Initializers

init(label​Text:​helper​Text:​options:​value:​validation​Rules:​should​Update​Validation​Appearance:​shared​Background​Color:​)

public init(labelText: String = "",
                helperText: String? = nil,
                options: [DSSelectOption],
                value: Binding<DSSelectOption?>? = nil,
                validationRules: [DSValidationRule] = [],
                shouldUpdateValidationAppearance: Bool = false,
                sharedBackgroundColor: Binding<Color?>? = nil)  

Properties

body

public var body: some View