 
         collectionView.backgroundColor = UIColor.clearColor()
         collectionView.alwaysBounceHorizontal = true
-        containerView.contentView.addSubview(collectionView)
+        if let containerView = containerView as? UIVisualEffectView {
+            containerView.contentView.addSubview(collectionView)
+        } else {
+            containerView.addSubview(collectionView)
+        }
         collectionView.registerClass(PhotoCollectionViewCell.self, forCellWithReuseIdentifier: "PhotoCell")
         collectionView.dataSource = self
         collectionView.delegate = self

    private var previewView: UIView!
    private var captureButton: TriggerButton!
    private let collectionView = UICollectionView(frame: CGRect.zeroRect, collectionViewLayout: UICollectionViewFlowLayout())
    private var containerView: UIVisualEffectView!
    private var focusIndicatorView: UIView!
    private var flashButton: UIButton!


        super.viewDidLoad()

        view.backgroundColor = UIColor.blackColor()
        let isPreOS8 = floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_7_1

        // TODO: Move all the boring view setup to a storyboard/xib

