Setting empty string to the text in the loading overlay

This commit is contained in:
Sumanth Nadigadda 2023-10-17 20:14:19 +05:30
parent 24d456d4b5
commit 0a42ebb032

View File

@ -81,9 +81,12 @@
} }
- (void)startLoadingWith:(nullable NSString *) text{ - (void)startLoadingWith:(nullable NSString *) text{
if([text length] != 0){ if(text != nil){
self.indicatorText.text = text; self.indicatorText.text = text;
self.indicatorText.accessibilityLabel = text; self.indicatorText.accessibilityLabel = text;
} else {
self.indicatorText.text = @"";
self.indicatorText.accessibilityLabel = @"";
} }
[self.activityIndicator resumeSpinner]; [self.activityIndicator resumeSpinner];
} }