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!