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];