How to get the UIImage metadata WITHOUT using UIImagePickerController.
I have basically a variable UIImage and I want to get the metadata.
I would need something like "myImage.date" to access the date for example.
EDIT 1 : I try this but it crash (found nil on exif var)
func getData(image: UIImage) {
    guard let data = UIImageJPEGRepresentation(image, 1),
        let source = CGImageSourceCreateWithData(data as CFData, nil) else { return}
    let imageProperties = CGImageSourceCopyPropertiesAtIndex(source, 0, nil)
    let a = Unmanaged.passUnretained(kCGImagePropertyExifDateTimeOriginal).toOpaque()
    let exif = CFDictionaryGetValue(imageProperties, a)
    print(exif)
}