Skip to content

Commit 02f1367

Browse files
author
Tom Adriaenssen
committed
Merge pull request ViewDeck#180 from SeanMcTex/master
UIAccessibility Notifications (master)
2 parents bd14752 + 84aeed5 commit 02f1367

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ViewDeck/IIViewDeckController.m

+8
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,7 @@ - (BOOL)openLeftViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)opti
869869
} completion:^(BOOL finished) {
870870
if (completed) completed(self);
871871
if (callDelegate) [self performDelegate:@selector(viewDeckControllerDidOpenLeftView:animated:) animated:animated];
872+
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
872873
}];
873874

874875
return YES;
@@ -909,6 +910,7 @@ - (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced options:(UIViewA
909910
} completion:^(BOOL finished) {
910911
if (completed) completed(self);
911912
if (callDelegate) [self performDelegate:@selector(viewDeckControllerDidOpenLeftView:animated:) animated:YES];
913+
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
912914
}];
913915
}];
914916

@@ -943,6 +945,7 @@ - (BOOL)closeLeftViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)opt
943945
[self performDelegate:@selector(viewDeckControllerDidCloseLeftView:animated:) animated:animated];
944946
[self performDelegate:@selector(viewDeckControllerDidShowCenterView:animated:) animated:animated];
945947
}
948+
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
946949
}];
947950

948951
return YES;
@@ -981,6 +984,7 @@ - (BOOL)closeLeftViewBouncing:(IIViewDeckControllerBlock)bounced callDelegate:(B
981984
[self performDelegate:@selector(viewDeckControllerDidCloseLeftView:animated:) animated:YES];
982985
[self performDelegate:@selector(viewDeckControllerDidShowCenterView:animated:) animated:YES];
983986
}
987+
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
984988
}];
985989
}];
986990

@@ -1085,6 +1089,7 @@ - (BOOL)openRightViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)opt
10851089
} completion:^(BOOL finished) {
10861090
if (completed) completed(self);
10871091
if (callDelegate) [self performDelegate:@selector(viewDeckControllerDidOpenRightView:animated:) animated:animated];
1092+
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
10881093
}];
10891094

10901095
return YES;
@@ -1125,6 +1130,7 @@ - (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced options:(UIView
11251130
} completion:^(BOOL finished) {
11261131
if (completed) completed(self);
11271132
if (callDelegate) [self performDelegate:@selector(viewDeckControllerDidOpenRightView:animated:) animated:YES];
1133+
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
11281134
}];
11291135
}];
11301136

@@ -1159,6 +1165,7 @@ - (BOOL)closeRightViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)op
11591165
[self performDelegate:@selector(viewDeckControllerDidCloseRightView:animated:) animated:animated];
11601166
[self performDelegate:@selector(viewDeckControllerDidShowCenterView:animated:) animated:animated];
11611167
}
1168+
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
11621169
}];
11631170

11641171
return YES;
@@ -1193,6 +1200,7 @@ - (BOOL)closeRightViewBouncing:(IIViewDeckControllerBlock)bounced callDelegate:(
11931200
if (completed) completed(self);
11941201
[self performDelegate:@selector(viewDeckControllerDidCloseRightView:animated:) animated:YES];
11951202
[self performDelegate:@selector(viewDeckControllerDidShowCenterView:animated:) animated:YES];
1203+
UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, nil);
11961204
}];
11971205
}];
11981206

0 commit comments

Comments
 (0)