diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 895b72f7..98c1dfb2 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -161,15 +161,15 @@ open class LabelBase: UILabel, ModelHandlerable, Initable } //-------------------------------------------------- - // MARK: - Private Functions + // MARK: - Default TextColor Configuration //-------------------------------------------------- private var textColorConfiguration: DisabledSurfaceColorConfiguration = { - let helper = DisabledSurfaceColorConfiguration() - helper.disabled.lightColor = VDSColor.elementsSecondaryOnlight - helper.disabled.darkColor = VDSColor.elementsSecondaryOndark - helper.enabled.lightColor = VDSColor.elementsPrimaryOnlight - helper.enabled.darkColor = VDSColor.elementsPrimaryOndark - return helper + let config = DisabledSurfaceColorConfiguration() + config.disabled.lightColor = VDSColor.elementsSecondaryOnlight + config.disabled.darkColor = VDSColor.elementsSecondaryOndark + config.enabled.lightColor = VDSColor.elementsPrimaryOnlight + config.enabled.darkColor = VDSColor.elementsPrimaryOndark + return config } () //--------------------------------------------------