     }
     
     
-    // MARK:- Helper Functions
+    // MARK:- Centerin Helpers
     func center(view: UIView, in frame: CGRect) {
         centerX(view: view, in: frame)
         centerY(view: view, in: frame)

        super.init(coder: aDecoder)
    }
    
    func userTap(recognizer: UITapGestureRecognizer) {
        isHidden = true
        removeFromSuperview()
    }
    
    
    func swipe(in frame: CGRect) {
        center(view: self, in: frame)
        animateSwipe()

        let offsetY = frame.height / 2
        let newY = centerY - offsetY
        
        view.frame = CGRect(x: view.frame.origin.x, y: newY, width: frame.width, height: frame.height)
    }
    
    func centerX(view: UIView, in frame: CGRect) {
        let centerX = frame.origin.x + (frame.width / 2)
        let offsetX = swipeDistance / 2
        let newX = centerX - CGFloat(offsetX)
        
        view.frame = CGRect(x: newX, y: view.frame.origin.y, width: frame.width, height: frame.height)
    }
}
