From fdaa932c3b89812e96f28491e4268895d42f9403 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Thu, 19 Oct 2023 16:58:07 +0530 Subject: [PATCH] Enabling the loading overlay info text to take attributed string. --- MVMCoreUI/BaseControllers/MFLoadingViewController.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MVMCoreUI/BaseControllers/MFLoadingViewController.m b/MVMCoreUI/BaseControllers/MFLoadingViewController.m index a2edee05..fb7dd8f8 100644 --- a/MVMCoreUI/BaseControllers/MFLoadingViewController.m +++ b/MVMCoreUI/BaseControllers/MFLoadingViewController.m @@ -42,7 +42,7 @@ self.activityIndicator.accessibilityIdentifier = @"Loader"; [activityIndicatorView pinWidthAndHeight]; - Label *infoLabel = [Label commonLabelH3:YES]; + Label *infoLabel = [Label label]; infoLabel.textAlignment = NSTextAlignmentCenter; infoLabel.translatesAutoresizingMaskIntoConstraints = NO; self.indicatorText = infoLabel; @@ -80,12 +80,12 @@ [self.activityIndicator resumeSpinner]; } -- (void)startLoadingWith:(nullable NSString *) text{ +- (void)startLoadingWith:(nullable NSAttributedString *) text{ if(text != nil){ - self.indicatorText.text = text; - self.indicatorText.accessibilityLabel = text; + self.indicatorText.attributedText = text; + self.indicatorText.accessibilityLabel = text.string; } else { - self.indicatorText.text = @""; + self.indicatorText.attributedText = nil; self.indicatorText.accessibilityLabel = @""; } [self.activityIndicator resumeSpinner];