taking pic animation on the view instead on the layer

This commit is contained in:
Ran Greenberg 2016-07-04 18:25:22 +03:00
parent 79dc74b4eb
commit f990d7f559
1 changed files with 3 additions and 3 deletions

View File

@ -819,9 +819,9 @@ RCT_ENUM_CONVERTER(CKCameraZoomMode, (@{
if ( isCapturingStillImage ) {
dispatch_async( dispatch_get_main_queue(), ^{
self.previewLayer.opacity = 0.0;
[UIView animateWithDuration:0.25 animations:^{
self.previewLayer.opacity = 1.0;
self.alpha = 0.0;
[UIView animateWithDuration:0.35 animations:^{
self.alpha = 1.0;
}];
} );
}