         }
         return CGRect.zeroRect
     }
-
+    
     func createAssetFromImageData(data: NSData, completion: Asset -> Void) {
         storage.createAssetFromImageData(data, completion: completion)
     }
-
+    
     func createAssetFromImage(image: UIImage, completion: Asset -> Void) {
         storage.createAssetFromImage(image, completion: completion)
     }
-
+    
     func createAssetFromImageURL(imageURL: NSURL, dimensions: CGSize, completion: Asset -> Void) {
         storage.createAssetFromImageURL(imageURL, dimensions: dimensions, completion: completion)
     }
-
+    
     /// Deletes item at the given index. Perform any deletions from datamodel in the handler
     func deleteAssetAtIndex(idx: Int, handler: () -> Void) {
         let indexPath = NSIndexPath(forItem: idx, inSection: 0)

public class PhotoCaptureViewController: UIViewController, PhotoCollectionViewLayoutDelegate {
    public weak var delegate: PhotoCaptureViewControllerDelegate?
    public var imagePickerAdapter: ImagePickerAdapter = ImagePickerControllerAdapter()

    private let storage = PhotoStorage()
    private let captureManager = CaptureManager()
    private var previewView: UIView!

                        self.focusIndicatorView.alpha = 0.0
                        }, completion: nil)
            })
            
            captureManager.lockFocusAtPointOfInterest(point)
        }
    }
    
    // MARK: - PhotoCollectionViewLayoutDelegate
    
    public func photoCollectionViewLayout(layout: UICollectionViewLayout, canMoveItemAtIndexPath indexPath: NSIndexPath) -> Bool {
        return delegate?.photoCaptureViewController(self, canMoveItemAtIndexPath: indexPath) ?? true
    }
    
    // MARK: - Private methods
    
    func roundifyButton(button: UIButton, inset: CGFloat = 16) {
        button.tintColor = UIColor.whiteColor()
        
        button.backgroundColor = UIColor.blackColor().colorWithAlphaComponent(0.3)
        button.layer.borderColor = button.tintColor!.CGColor
        button.layer.borderWidth = 1.0
        button.layer.cornerRadius = button.bounds.height/2
        
        var insets = button.imageEdgeInsets
        insets.left -= inset
        button.imageEdgeInsets = insets
