From 9b885da7ca4d3010bfa97740aa556ada9ee47a28 Mon Sep 17 00:00:00 2001 From: Vasavi Kanamarlapudi Date: Thu, 12 Sep 2024 15:46:32 +0530 Subject: [PATCH] using .isHidden feature --- VDS/Components/Footnote/Footnote.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VDS/Components/Footnote/Footnote.swift b/VDS/Components/Footnote/Footnote.swift index 8583a05b..4d352e7b 100644 --- a/VDS/Components/Footnote/Footnote.swift +++ b/VDS/Components/Footnote/Footnote.swift @@ -211,7 +211,8 @@ open class Footnote: View { // Update symbolLabel symbolWidthConstraint?.isActive = false - symbolLabel.text = hideSymbol ? "" : symbolType + symbolLabel.text = symbolType + symbolLabel.isHidden = hideSymbol symbolLabel.textColor = kind.colorConfiguration.getColor(self) symbolLabel.textStyle = size.textStyle.regular symbolLabel.surface = surface