 
 extension UIView {
     
+    func cornerClosestToPoint(point: CGPoint) -> Corner {
+        if point.x > CGRectGetMidX(self.bounds) {
+            // right
+            if point.y > CGRectGetMidY(self.bounds) {
+                return .BottomRight
+            } else {
+                return .TopRight
+            }
+        } else {
+            // left
+            if point.y > CGRectGetMidY(self.bounds) {
+                return .BottomLeft
+            } else {
+                return .TopLeft
+            }
+        }
+    }
+    
     private func springAnimationDuration () -> NSTimeInterval {
-        return 0.75
+        return 0.4
     }
     
     private func fadeAnimationDuration () -> NSTimeInterval {

            // find the angle of the touch point
            // zero is horizontal
            
            let angle = angleOfTouchPoint(touchPoint, fromPoint: closestCorner)
            
            let colour = self.gradientView.colorAtPosition(self.colourToChange)
            

import AudioToolbox
import AssetsLibrary

enum AppState {
    case Idle
    case Saving
    case Saved
    case CreditsShown
}

enum Corner {
    case TopLeft
    case TopRight
    case BottomLeft
    case BottomRight
}

extension NSURL {
    
    convenience init?(twitterUsername : String) {
