             if animated {
                 UIView.animateWithDuration(0.5, delay: delay, usingSpringWithDamping: 0.8, initialSpringVelocity: 0.5,
                     options: .TransitionNone, animations: { () -> Void in
-                    view.frame = CGRectMake(left, top, view.frame.size.width, view.frame.size.height)
+                        view.frame = CGRectMake(left, top, view.frame.size.width, view.frame.size.height)
                     }, completion: { (Bool) -> Void in
                 })
             } else {


import UIKit

public class FeedView: UIScrollView {
    
    public  var topSpacing: CGFloat = 6.0
    public  var leftSpacing: CGFloat = 6.0
    private var padding: CGFloat = 0
    ///init method
    override public init(frame: CGRect) {
        super.init(frame: frame)

                tallest = view.frame.size.height
            }
            delay += 0.1
            if top > visibleHeight {
                println("this view is hidden")
            }
        }
        self.contentSize = CGSizeMake(self.frame.size.width, top+tallest+topPad)
    }
