     // MARK: Helper Methods 
     func convertRectToCanvas(_ rect : CGRect, fromView view : UIView) -> CGRect {
         
-        var r : CGRect = rect
-        
+        var r = rect
         var v = view
         
         while v != self.canvas {
             
-            if let sv = v.superview {
-                
-                r.origin.x += sv.frame.origin.x
-                r.origin.y += sv.frame.origin.y
-                
-                v = sv
-                
-                continue
-            }
-            break
+            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

                        
                        (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)
                    
                }
            }
            
            
