EnterpriseDS Documentation

Structure DSUIRadio​Group

@available(iOS 13.0, tvOS 13.0, *)
public struct DSUIRadioGroup<T: DSUISelectionGroupItem>: View  

A component for creating a group of DSUIRadio components.

groupName is a string initializer parameter items is an array of DSUISelectionGroupItem initializer parameter selectedItem is a a binding optional of DSUISelectionGroupItem initializer parameter

Initialize and set group name, items, and selectedItem binding.

DSUIRadioGroup(groupName: favoriteDrinkGroup, items: step1Config.radioDrinks, selectedItem: $step1Config.selectedDrink)
DSUIRadioGroup DSUIRadioGroup View View DSUIRadioGroup->View

Conforms To

View

Initializers

init(group​Name:​items:​selected​Item:​)

public init(groupName: String, items: [T], selectedItem: Binding<T?>? = nil)  

Properties

body

public var body: some View