update acc before do animation
This commit is contained in:
parent
d45fe3f796
commit
af3c373d0a
@ -301,11 +301,12 @@
|
|||||||
[weakSelf.viewToLayout layoutIfNeeded];
|
[weakSelf.viewToLayout layoutIfNeeded];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//accessibility - added to make only top alert label and close button accessible. Posted notification when top alert is displayed
|
||||||
|
weakSelf.accessibilityElements = @[weakSelf.buttonView];
|
||||||
|
weakSelf.shortView.isAccessibilityElement = NO;
|
||||||
|
weakSelf.buttonView.label.accessibilityLabel = [NSString stringWithFormat:@"%@ - %@", [MVMCoreUIUtility hardcodedStringWithKey:@"top_alert_notification"],weakSelf.buttonView.label.accessibilityLabel];
|
||||||
|
|
||||||
void(^completion)(void) = ^(void) {
|
void(^completion)(void) = ^(void) {
|
||||||
//accessibility - added to make only top alert label and close button accessible. Posted notification when top alert is displayed
|
|
||||||
weakSelf.accessibilityElements = @[weakSelf.buttonView];
|
|
||||||
weakSelf.shortView.isAccessibilityElement = NO;
|
|
||||||
weakSelf.buttonView.label.accessibilityLabel = [NSString stringWithFormat:@"%@ - %@", [MVMCoreUIUtility hardcodedStringWithKey:@"top_alert_notification"],weakSelf.buttonView.label.accessibilityLabel];
|
|
||||||
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, weakSelf.buttonView.label);
|
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, weakSelf.buttonView.label);
|
||||||
[operation markAsFinished];
|
[operation markAsFinished];
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user