     private var numberOfPages: size_t = 0
     private var currentPage: size_t = 1
 
+    private var scale: CGFloat = 0.0
+    
     required init?(coder aDecoder: NSCoder)
     {
         super.init(coder: aDecoder)

        self.addGestureRecognizer(leftSwipeGestureRecognier)
        self.addGestureRecognizer(rightSwipeGestureRecognier)
        
    }
    
    // Only override drawRect: if you perform custom drawing.


            }
        }
        else if (gestureRecognizer .isKindOfClass(UIPinchGestureRecognizer) == true)
        {
            let pinchGestureRecongizer: UIPinchGestureRecognizer = gestureRecognizer as! UIPinchGestureRecognizer
            
            self.scale = pinchGestureRecongizer.scale
            
            let transform: CGAffineTransform = CGAffineTransformScale(self.transform, self.scale, self.scale)
            self.transform = transform;

            
        }
        
        return true
    }
