                 if finished {
                     NSNotificationCenter.defaultCenter().addObserver(self, selector: "rotate", name: UIDeviceOrientationDidChangeNotification, object: nil)
                     
-                    self.applicationWindow!.windowLevel = UIWindowLevelStatusBar
                     self.scrollView.addSubview(self.imageView)
                     self.imageProvider.provideImage { [weak self] image in
                         self?.imageView.image = image

        
        UIView.animateWithDuration(duration, animations: {
            
            self.applicationWindow!.windowLevel = UIWindowLevelNormal
            self.scrollView.zoomScale = self.scrollView.minimumZoomScale
            self.overlayView.alpha = 0.0
            self.closeButton.alpha = 0.0

                    
                    self.overlayView.alpha = 0.0
                    self.closeButton.alpha = 0.0
                    self.isAnimating = false
                    self.isSwipingToDismiss = false
                    self.dynamicTransparencyActive = false
