From af2360c13a1b12f071adcd3d9d76cfed91e494ae Mon Sep 17 00:00:00 2001 From: "Murugan, Vimal" Date: Tue, 8 Nov 2022 18:41:27 +0530 Subject: [PATCH] fix for CXTDT_344190 --- MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift b/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift index 9e5881a4..ec94149b 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift @@ -757,8 +757,10 @@ public typealias ActionBlock = () -> () extension Label { public func reset() { - text = nil + //Weird issue. when cell reuse. text style is not getting reset.Fix for:CXTDT-344190 + //We need to reset the attribute text first and then text. Its working fine attributedText = nil + text = nil hero = nil textAlignment = .left originalAttributedString = nil