 	private let styleableObject: GagatStyleable
 
 	private(set) var panGestureRecognizer: UIPanGestureRecognizer!
+
+	fileprivate var state = State.idle
 	
 	init(targetView: UIView, configuration: Gagat.Configuration, styleableObject: GagatStyleable) {
 		self.targetView = targetView

	func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
		guard let panRecognizer = gestureRecognizer as? UIPanGestureRecognizer else {
			return true
		}
		
		let translation = panRecognizer.translation(in: targetView)

		let targetLocation = CGPoint(x: 0.0, y: targetView.bounds.maxY)
		animate(snapshotMaskLayer, to: targetLocation, withVelocity: velocity) {
			self.cleanupAfterInteractiveStyleTransition()
			self.state = .idle
		}
	}
	
