         case RotatedLeft
         case RotatedRight
         
-        func viewCenter(var center: CGPoint, offsetFromCenter : CGFloat)->CGPoint {
+        func viewCenter(center: CGPoint, offsetFromCenter : CGFloat)->CGPoint {
+            var center = center
+            
             switch self {
             case .RotatedLeft:
                 center.y += offsetFromCenter

       
        if let correctView = generalView as? PermissionView {

            NSNotificationCenter.defaultCenter().addObserver(self, selector:"updateButtonAppearenceBasedOnCurrentSetOfPermissions" , name: "AuthorizationStatusChanged", object: nil)
            
            correctView.progressView.progress = 1.0
            correctView.locationButton.addTarget(self, action: "permissionButtonLocationPressed", forControlEvents: .TouchUpInside)
            correctView.calendarButton.addTarget(self, action: "permissionButtonCalendarPressed", forControlEvents: .TouchUpInside)
            correctView.notificationButton.addTarget(self, action: "permissionButtonNotificationPressed", forControlEvents: .TouchUpInside)
            correctView.doneButton.addTarget(self, action: "doneButtonPressed", forControlEvents: .TouchUpInside)
            updateButtonAppearenceBasedOnCurrentSetOfPermissions()
        }
        

                var nextPosition = ExplanationViewPosition.RotatedLeft
                
                if velocity > 0 && offset > 0 {
                    nextIndex -= 1
                    nextPosition = .RotatedLeft
                    position = .RotatedRight
                }
                else {
                    nextIndex += 1
                    nextPosition = .RotatedRight
                    position = .RotatedLeft
                }
