                 flipperState = .Began
             }
             
-            var screenBounds = UIScreen.mainScreen().bounds
             var animationLayer = DJKAnimationLayer(frame: self.staticView.rightSide.bounds, isFirstOrLast:false)
             
             //if an animation has a lower zPosition then it will not be visible throughout the entire animation cycle

    var viewControllerSnapShots:[UIImage?] = []
    public var dataSource:DJKFlipperDataSource? {
        didSet {
            updateTheActiveView()
            //set an array with capacity for total amount of possible pages
            viewControllerSnapShots.removeAll(keepCapacity: false)
            for index in 1...dataSource!.numberOfPages(self) {
                viewControllerSnapShots.append(nil)
            }
        }
    }
    
    lazy var staticView:DJKStaticView = {
        let view = DJKStaticView(frame: self.frame)
        return view
    }()
    
    var flipperState = FlipperState.Inactive
    var activeView:UIView?

    //MARK: - Flip Animation Methods
    
    func setUpForFlip(animationLayer:DJKAnimationLayer, progress:CGFloat, animated:Bool, clearFlip:Bool) {
        
        var newAngle:CGFloat = animationLayer.flipProperties.startAngle + progress * (animationLayer.flipProperties.endFlipAngle - animationLayer.flipProperties.startAngle)
        
        var duration:CGFloat
