added selectedItem

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-01-06 14:55:27 -06:00
parent 9f7717547e
commit 3e0aae5ab4

View File

@ -40,6 +40,10 @@ public class PickerSelectorView<EnumType: RawRepresentable>: UIStackView, Picker
$0.typograpicalStyle = .BodyLarge
}
public var selectedItem: EnumType {
return items[selectedIndex]
}
private var button = Button().with { instance in
instance.size = .small
instance.use = .secondary