From bcba477e6ce150482a20d6934ff68f689f907352 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 8 Jun 2023 15:39:06 -0500 Subject: [PATCH] updated to return view Signed-off-by: Matt Bruce --- VDSSample/ViewControllers/BaseViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VDSSample/ViewControllers/BaseViewController.swift b/VDSSample/ViewControllers/BaseViewController.swift index 08b964c..45374ee 100644 --- a/VDSSample/ViewControllers/BaseViewController.swift +++ b/VDSSample/ViewControllers/BaseViewController.swift @@ -28,7 +28,8 @@ public class FormSection: UIStackView { fatalError("init(coder:) has not been implemented") } - open func addFormRow(label: String, view: UIView) { + @discardableResult + open func addFormRow(label: String, view: UIView) -> UIView { let formRow = UIStackView().with { $0.translatesAutoresizingMaskIntoConstraints = false $0.alignment = .fill @@ -46,6 +47,7 @@ public class FormSection: UIStackView { formRow.addArrangedSubview(view) addArrangedSubview(formRow) + return formRow } }