 import ImageIO
 import CoreLocation
 
-
-enum CameraDataManagerNotification : String {
-    case UserPressedPostPhoto = "UserPressedPostPhoto"
- 
-}
-
-/// Singleton to hold any state with showing the camera picker. Allows user to upload a photo to BluePic
 class CameraDataManager: NSObject {
 
-    /// Shared instance of data manager
+    /// Shared instance of data manager to make the CameraDataManager a singleton
     static let SharedInstance: CameraDataManager = {
         
         var manager = CameraDataManager()

        
        // Present the controller
        self.tabVC.presentViewController(alert, animated: true, completion: nil)
        
    }
    
    

            self.tryToPostPhoto()
          
        }
    }
    
    
    /**
     Method is called when the post button is pressed
     */
    func postPhotoButtonAction(){
        userPressedPostPhoto = true
        
        tryToPostPhoto()
    }
    
    /**
     Method tries to post the photo only if the user has pressed the post photo button already.
     */
    private func tryToPostPhoto(){
        
        //only post photo if user has chosen to
