             
             let frontCamera = UIImagePickerControllerCameraDevice.Front
             let rearCamera = UIImagePickerControllerCameraDevice.Rear
+            
             //use the front facing camera if available
             if (UIImagePickerController.isCameraDeviceAvailable(frontCamera))
             {

                            
    @IBOutlet weak var imageView: UIImageView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

// MARK: IBAction funcs -
    @IBAction func takePhoto(sender: AnyObject) {

    }
    
    @IBAction func sharePhoto(sender: AnyObject) {
        
        if let image = self.imageView.image {
            let activity = UIActivityViewController(activityItems: [image], applicationActivities: nil)
            
            self.presentViewController(activity, animated: true) { () -> Void in
                // we don't need to do anything
            }
