From 8311de540979e5991ba37ce989eea7de833b26a9 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 9 Apr 2024 15:38:10 -0500 Subject: [PATCH] added value in case there is a difference Signed-off-by: Matt Bruce --- VDS/Components/DropdownSelect/DropdownOptionModel.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VDS/Components/DropdownSelect/DropdownOptionModel.swift b/VDS/Components/DropdownSelect/DropdownOptionModel.swift index ba7caa7f..c82519eb 100644 --- a/VDS/Components/DropdownSelect/DropdownOptionModel.swift +++ b/VDS/Components/DropdownSelect/DropdownOptionModel.swift @@ -12,9 +12,11 @@ extension DropdownSelect { /// Text that goes as option to DropdownSelect public var text: String + public var value: String - public init(text: String) { + public init(text: String, value: String? = nil) { self.text = text + self.value = value ?? text } } }