From 3e0aae5ab48d0b434d11685840e66362ab2e3133 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 6 Jan 2023 14:55:27 -0600 Subject: [PATCH] added selectedItem Signed-off-by: Matt Bruce --- VDSSample/Protocols/PickerBase.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VDSSample/Protocols/PickerBase.swift b/VDSSample/Protocols/PickerBase.swift index 27989fa..ad564e2 100644 --- a/VDSSample/Protocols/PickerBase.swift +++ b/VDSSample/Protocols/PickerBase.swift @@ -40,6 +40,10 @@ public class PickerSelectorView: 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