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 } }