Structure
DSUIRadioGroup
@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)
Relationships
Conforms To
View
Initializers
init(groupName:items:selectedItem:)
public init(groupName: String, items: [T], selectedItem: Binding<T?>? = nil)
Properties
body
public var body: some View