         if let selectedImageScrollView = selectedImageScrollView,
            let mainScrollView = mainScrollView {
             let height = selectedImageScrollView.bounds.height
-            mainScrollView.setContentOffset(CGPoint(x: mainScrollView.contentOffset.x, y: height * CGFloat(state.rawValue)), animated: true)
+            mainScrollView.setContentOffset(CGPoint(x: mainScrollView.contentOffset.x, y: height * CGFloat(state.offset)), animated: true)
             
             switch state {
             case .Image:

    }
    
    private func setupViewSizes() {
        if let mainFrame = mainScrollView?.frame,
            let imageFrame = selectedImageScrollView?.frame {
            let imageSizeWhenDisplayed = imageFrame.height * CGFloat(DisplayState.Album.rawValue)
            let imageSizeWhenHidden = imageFrame.height * (1 - CGFloat(DisplayState.Album.rawValue))
            mainScrollView?.contentSize = CGSize(width: mainFrame.width, height: mainFrame.height + imageSizeWhenDisplayed)
            albumCollectionViewHeightConstraint?.constant = mainFrame.height - imageSizeWhenHidden - UIConstants.Spacing
        }
    }

class SnapImagePickerViewController: UIViewController {
    @IBOutlet weak var mainScrollView: UIScrollView?
    @IBOutlet weak var selectedImageScrollView: UIScrollView?
    @IBOutlet weak var selectedImageView: UIImageView?
    @IBOutlet weak var albumCollectionView: UICollectionView?
    @IBOutlet weak var albumSelectorView: AlbumSelectorView?

