     }
     
     func swipeFromScreenEdge(sender: UIScreenEdgePanGestureRecognizer) {
-        UserMotion.stop()
-        self.performSegueWithIdentifier("backToMain", sender: self)
+        let point = sender.translationInView(self.view)
+//        if scrollView.contentOffset.y > 0 {
+//            scrollView.setContentOffset(CGPointZero, animated: true)
+//        } else {
+            scrollView.contentOffset.y = -point.x * CGFloat(1.5)
+//        }
     }
     
     // if doesn't have forcast data

import Spring
import Shimmer

class CityDetailViewController: UIViewController, UIScrollViewDelegate, InternetConnectionDelegate{
    
    @IBOutlet var backgroundImageView: ImageScrollerView!
    @IBOutlet var scrollView: UIScrollView!

            forecastView.setup(nineDayWeatherForcast)
            digestWeatherView.setup(nineDayWeatherForcast)
            detailWeatherView.setup(nineDayWeatherForcast)
        } else {
            var connection = InternetConnection()
            connection.delegate = self
            connection.getWeatherForcast(cityID)
