From 79d1fe9b0f9a14ade00949030c46d6a236685e11 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 21 Aug 2023 17:36:45 -0500 Subject: [PATCH] removed code Signed-off-by: Matt Bruce --- VDS/Components/TitleLockup/TitleLockup.swift | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/VDS/Components/TitleLockup/TitleLockup.swift b/VDS/Components/TitleLockup/TitleLockup.swift index 1b2b1af4..354644ee 100644 --- a/VDS/Components/TitleLockup/TitleLockup.swift +++ b/VDS/Components/TitleLockup/TitleLockup.swift @@ -328,9 +328,6 @@ open class TitleLockup: View { eyebrowLabel.textColorConfiguration = textColorPrimaryConfiguration eyebrowLabel.textStyle = eyebrowModel.isBold ? otherStandardStyle.value.bold : otherStandardStyle.value.regular } - eyebrowLabel.sizeToFit() - } else { - eyebrowLabel.reset() } if let titleModel, !titleModel.text.isEmpty { @@ -341,9 +338,6 @@ open class TitleLockup: View { titleLabel.attributes = titleModel.textAttributes titleLabel.numberOfLines = titleModel.numberOfLines titleLabel.surface = surface - titleLabel.sizeToFit() - } else { - titleLabel.reset() } if let subTitleModel, !subTitleModel.text.isEmpty { @@ -355,9 +349,6 @@ open class TitleLockup: View { subTitleLabel.attributes = subTitleModel.textAttributes subTitleLabel.numberOfLines = subTitleModel.numberOfLines subTitleLabel.surface = surface - subTitleLabel.sizeToFit() - } else { - subTitleLabel.reset() } //if both first 2 rows not empty set spacing @@ -378,5 +369,5 @@ open class TitleLockup: View { eyebrowLabel.isHidden = eyebrowTextIsEmpty titleLabel.isHidden = titleTextIsEmpty subTitleLabel.isHidden = subTitleTextIsEmpty - } + } }