adjust other config endpoints.
This commit is contained in:
parent
01b52bc479
commit
b1d0aa55c4
@ -61,6 +61,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)amendAccesibilityLabel {
|
||||
NSString *amendment = [MVMCoreUIUtility hardcodedStringWithKey:@"top_alert_notification"];
|
||||
if (![self.buttonView.label.accessibilityLabel hasPrefix:amendment]) {
|
||||
self.buttonView.label.accessibilityLabel = [NSString stringWithFormat:@"%@ - %@", amendment, self.buttonView.label.accessibilityLabel];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Setup View
|
||||
|
||||
- (void)updateView:(CGFloat)size {
|
||||
@ -163,12 +170,13 @@
|
||||
|
||||
- (void)setupTopAlertWithButton:(MVMCoreUITopAlertMainView *)topAlertWithButton {
|
||||
topAlertWithButton.label.alpha = 0;
|
||||
topAlertWithButton.label.accessibilityLabel = [NSString stringWithFormat:@"%@ - %@", [MVMCoreUIUtility hardcodedStringWithKey:@"top_alert_notification"], topAlertWithButton.label.accessibilityLabel];
|
||||
topAlertWithButton.button.alpha = 0;
|
||||
topAlertWithButton.backgroundColor = [UIColor clearColor];
|
||||
[self insertSubview:topAlertWithButton belowSubview:self.shortView];
|
||||
self.buttonView = topAlertWithButton;
|
||||
|
||||
[self amendAccesibilityLabel];
|
||||
|
||||
self.topConstraint = [NSLayoutConstraint constraintWithItem:topAlertWithButton attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.shortView attribute:NSLayoutAttributeBottom multiplier:1 constant:0];
|
||||
[NSLayoutConstraint constraintPinSubview:topAlertWithButton pinTop:NO topConstant:0 pinBottom:YES bottomConstant:0 pinLeft:YES leftConstant:0 pinRight:YES rightConstant:0];
|
||||
}
|
||||
@ -209,6 +217,7 @@
|
||||
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||
[self setTopMessage:topMessage];
|
||||
[self.buttonView setupWithMessage:message subMessage:subMessage color:contentColor actionMap:actionMap additionalData:additionalData];
|
||||
[self amendAccesibilityLabel];
|
||||
}];
|
||||
}
|
||||
|
||||
@ -216,6 +225,7 @@
|
||||
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||
[self setTopMessage:topMessage];
|
||||
[self.buttonView setupWithMessage:message subMessage:subMessage color:contentColor buttonTitle:buttonTitle userActionHandler:userActionHandler];
|
||||
[self amendAccesibilityLabel];
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user