                         
                         (bundle.overDroppableView as! KDDroppable).didMoveOutItem(bundle.dataItem)
                         droppable.willMoveItem(bundle.dataItem, inRect: rect)
-                        
                     }
                     
                     // set the view the dragged element is over

                    droppable.didMoveItem(bundle.dataItem, inRect: rect)
                    
                }
                
                
            }
            
            

    // MARK: Helper Methods 
    func convertRectToCanvas(_ rect : CGRect, fromView view : UIView) -> CGRect {
        
        var r = rect
        var v = view
        
        while v != self.canvas {
            
            guard let sv = v.superview else { break; }
            
            r.origin.x += sv.frame.origin.x
            r.origin.y += sv.frame.origin.y
            
            v = sv
        }
        
        return r
