File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -156,16 +156,24 @@ - (void)show {
156
156
if ([self .delegate respondsToSelector: @selector (willPresentAlertView: )]) {
157
157
[self .delegate willPresentAlertView: self ];
158
158
}
159
- [UIView animateWithDuration: self .animationDuration animations: ^{
159
+ [UIView animateWithDuration: self .animationDuration/ 1.5 animations: ^{
160
160
self.backgroundOverlay .alpha = 1 .0f ;
161
- self.alertContainer .transform = CGAffineTransformIdentity;
162
- } completion: ^(BOOL finished) {
163
- _visible = YES ;
164
- if ([self .delegate respondsToSelector: @selector (didPresentAlertView: )]) {
165
- [self .delegate didPresentAlertView: self ];
166
- }
167
- }];
168
-
161
+ self.alertContainer .transform = CGAffineTransformScale (CGAffineTransformIdentity, 1.0 , 1.0 );}
162
+ completion: ^(BOOL finished) {
163
+
164
+ [UIView animateWithDuration: self .animationDuration/2 animations: ^{
165
+ self.alertContainer .transform = CGAffineTransformScale (CGAffineTransformIdentity, 0.9 , 0.9 );} completion: ^(BOOL finished) {
166
+
167
+ [UIView animateWithDuration: self .animationDuration/2 animations: ^{
168
+ self.alertContainer .transform = CGAffineTransformIdentity;
169
+ } completion: ^(BOOL finished) {
170
+ _visible = YES ;
171
+ if ([self .delegate respondsToSelector: @selector (didPresentAlertView: )]) {
172
+ [self .delegate didPresentAlertView: self ];
173
+ }
174
+ }];
175
+ }];
176
+ }];
169
177
}
170
178
171
179
- (NSString *)buttonTitleAtIndex : (NSInteger )buttonIndex {
You can’t perform that action at this time.
0 commit comments