         
         menuView.frame = view.frame
         view.addSubview(menuView)
-    
+        
         kButtonWidth = view.frame.width * 0.8
         
         // Gesture Recognizer for tapping outside the menu

        menuView.shapeLayer.bounds.origin = menuView.frame.origin
        menuView.shapeLayer.layoutIfNeeded()
        menuView.layoutIfNeeded()

        for var i = 0; i < buttons.count; i++ {
            let btn = buttons[i]
            btn.frame  = CGRect(x: 0.0, y: 0.0, width: kButtonWidth, height: kButtonHeight)

        
        // This is needed to retain this instance.
        instance = self
        
        menuView.frame = view.frame
        
        let colors = (self.colors == nil) ? colorScheme.getColors() : self.colors
        
