From 0a42ebb032ccad02ab34f1211e3225a6a0f756f3 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Tue, 17 Oct 2023 20:14:19 +0530 Subject: [PATCH] Setting empty string to the text in the loading overlay --- MVMCoreUI/BaseControllers/MFLoadingViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/BaseControllers/MFLoadingViewController.m b/MVMCoreUI/BaseControllers/MFLoadingViewController.m index e573fcd8..a2edee05 100644 --- a/MVMCoreUI/BaseControllers/MFLoadingViewController.m +++ b/MVMCoreUI/BaseControllers/MFLoadingViewController.m @@ -81,9 +81,12 @@ } - (void)startLoadingWith:(nullable NSString *) text{ - if([text length] != 0){ + if(text != nil){ self.indicatorText.text = text; self.indicatorText.accessibilityLabel = text; + } else { + self.indicatorText.text = @""; + self.indicatorText.accessibilityLabel = @""; } [self.activityIndicator resumeSpinner]; }