From b4f8d5602468396259665dc10e1e7aecb7f5bd9b Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 2 Aug 2022 17:09:25 -0500 Subject: [PATCH] updated Signed-off-by: Matt Bruce --- VDSSample/ViewControllers/CheckboxViewController.swift | 2 +- VDSSample/ViewControllers/ToggleViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VDSSample/ViewControllers/CheckboxViewController.swift b/VDSSample/ViewControllers/CheckboxViewController.swift index 6bcacfc..7e92683 100644 --- a/VDSSample/ViewControllers/CheckboxViewController.swift +++ b/VDSSample/ViewControllers/CheckboxViewController.swift @@ -51,7 +51,7 @@ class CheckboxViewController: UIViewController, StoryboardInitable { } @IBAction func showErrorChanged(_ sender: UISwitch) { - checkbox.disabled = sender.isOn + checkbox.showError = sender.isOn } @IBAction func onErrorTextDidEnd(_ sender: UITextField) { diff --git a/VDSSample/ViewControllers/ToggleViewController.swift b/VDSSample/ViewControllers/ToggleViewController.swift index 46ed082..c793f3b 100644 --- a/VDSSample/ViewControllers/ToggleViewController.swift +++ b/VDSSample/ViewControllers/ToggleViewController.swift @@ -14,7 +14,7 @@ class ToggleViewController: UIViewController, StoryboardInitable { enum PickerType { case surface, textSize, textPosition, fontWeight } - static var storyboardId: String = "checkbox" + static var storyboardId: String = "toggle" static var storyboardName: String = "Components" @IBOutlet weak var toggleContainerView: UIView!