diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Welcome/PageController/MWMPageController.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/Welcome/PageController/MWMPageController.mm index f9cb02a41f..11a1b537aa 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/Welcome/PageController/MWMPageController.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Welcome/PageController/MWMPageController.mm @@ -109,12 +109,21 @@ return; self.isAnimatingTransition = YES; __weak auto weakSelf = self; - [self setViewControllers:@[ currentController ] - direction:UIPageViewControllerNavigationDirectionForward + NSArray * viewControllers = @[ currentController ]; + UIPageViewControllerNavigationDirection const direction = UIPageViewControllerNavigationDirectionForward; + [self setViewControllers:viewControllers + direction:direction animated:YES completion:^(BOOL finished) { - weakSelf.isAnimatingTransition = NO; + if (finished) + { + dispatch_async(dispatch_get_main_queue(), ^ + { + weakSelf.isAnimatingTransition = NO; + [weakSelf setViewControllers:viewControllers direction:direction animated:NO completion:nil]; + }); + } }]; }