From 53b43c6daf200bf2d5d60d7b570edc8dcc0d959d Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 2 Nov 2022 11:11:39 -0500 Subject: [PATCH] execute updateView() after setup Signed-off-by: Matt Bruce --- VDS/Classes/Control.swift | 1 + VDS/Classes/View.swift | 3 ++- VDS/Components/Button/Button.swift | 1 + VDS/Components/Label/Label.swift | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VDS/Classes/Control.swift b/VDS/Classes/Control.swift index e068d5db..0f7a2631 100644 --- a/VDS/Classes/Control.swift +++ b/VDS/Classes/Control.swift @@ -67,6 +67,7 @@ open class Control: UIControl, Handlerable, ViewProtocol, Resettable { initialSetupPerformed = true setup() setupDidChangeEvent() + updateView() } } diff --git a/VDS/Classes/View.swift b/VDS/Classes/View.swift index 7ead2431..837d81a8 100644 --- a/VDS/Classes/View.swift +++ b/VDS/Classes/View.swift @@ -66,7 +66,8 @@ open class View: UIView, Handlerable, ViewProtocol, Resettable { initialSetupPerformed = true setup() setupDidChangeEvent() - } + updateView() + } } //-------------------------------------------------- diff --git a/VDS/Components/Button/Button.swift b/VDS/Components/Button/Button.swift index c21802fd..4a065e3e 100644 --- a/VDS/Components/Button/Button.swift +++ b/VDS/Components/Button/Button.swift @@ -128,6 +128,7 @@ open class Button: UIButton, Handlerable, ViewProtocol, Resettable, Useable { accessibilityTraits = .staticText setup() setupDidChangeEvent() + updateView() } } diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 45b5997a..449c9c80 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -96,7 +96,8 @@ open class LabelBase: UILabel, Handlerable, ViewProtocol, Resettable { accessibilityTraits = .staticText setup() setupDidChangeEvent() - } + updateView() + } } open func setup() {}