Enabling the loading overlay info text to take attributed string.
This commit is contained in:
parent
0a42ebb032
commit
fdaa932c3b
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user