                                             pagesAddedDictionary[index] = index
                                         }
                                         
-                                        lastScrollDirection = "right"
+                                        lastScrollDirection = .Right
                                     }
                                 } else if (lastControllerScrollViewContentOffset < scrollView.contentOffset.x) {
                                     if currentPageIndex != 0 {

    
    var lastControllerScrollViewContentOffset : CGFloat = 0.0
    
    var lastScrollDirection : String = ""
    var startingPageForScroll : Int = 0
    var didTapMenuItemToScroll : Bool = false
    

                                            pagesAddedDictionary[index] = index
                                        }
                                        
                                        lastScrollDirection = .Left
                                    }
                                }
                                
