 	}
 	
 	override func observeValueForKeyPath(keyPath: String, ofObject object: AnyObject, change: [NSObject : AnyObject], context: UnsafeMutablePointer<Void>) {
-		let scrollView = self.superview as UIScrollView
+		let scrollView = self.superview as! UIScrollView
 		
 		if object as? UIScrollView == scrollView {
 			if keyPath == "contentOffset" {

		
		spinningView.layer.removeAnimationForKey("rotate")
		
		let scrollView = self.superview as UIScrollView
		
		UIView.animateWithDuration(0.3, delay: 0.0, options: .AllowUserInteraction, animations: { () -> Void in
			scrollView.contentInset = self.scrollViewDefaultContentInset

	}
	
	init(spinningView: UIView, height: CGFloat) {
		super.init(frame: CGRectZero)
		
		self.spinningView = spinningView
		self.height = height
