diff --git a/VDSSample/ViewControllers/BaseViewController.swift b/VDSSample/ViewControllers/BaseViewController.swift index 45374ee..c5644f5 100644 --- a/VDSSample/ViewControllers/BaseViewController.swift +++ b/VDSSample/ViewControllers/BaseViewController.swift @@ -209,12 +209,14 @@ public class BaseViewController: UIViewController, Initable { open func append(section: FormSection) { formStackView.addArrangedSubview(section) } - - open func addFormRow(label: String, view: UIView) { - formStackView.addFormRow(label: label, view: view) + + @discardableResult + open func addFormRow(label: String, view: UIView) -> UIView { + let view = formStackView.addFormRow(label: label, view: view) if let pickerViewable = view as? any PickerViewable { pickerViewable.scrollToBottom = { [weak self] in self?.scrollToBottom() } } + return view } open func setup() {