imaginary-cloud / CameraManager

Simple Swift class to provide all the configurations you need to create custom camera view in your app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Location data not stored in EXIF data

Brandon-316 opened this issue · comments

I have shouldUseLocationServices set to true but location data is still not appearing in EXIF data.

    cameraManager.shouldUseLocationServices = true

When I use the following code to print the images EXIF data, location info is nowhere to be found.

    cameraManager.capturePictureDataWithCompletion { (result) in
             switch result {
                 case .failure:
                     self.cameraManager.showErrorBlock("Error occurred", "Cannot save picture.")
                 case .success(let content):
                     let ciimage = CIImage(data: content.asData!)
                     let metadata = ciimage?.properties
                     print("\npictureData metadata: \(metadata)")
          }
     }

Does location data only work with the camera roll or am I doing something wrong?

Thanks

@Brandon-316

just released v5.1.0 where this should be fixed.