回答編集履歴
1
コードを修正
answer
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
```Swift
|
13
13
|
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey: Any]) {
|
14
14
|
if let asset = info[.phAsset] as? PHAsset {
|
15
|
-
asset.
|
15
|
+
asset.requestContentEditingInput(with: nil) { contentEditingInput, _ in
|
16
16
|
if let url = contentEditingInput.fullSizeImageURL,
|
17
17
|
let ciimage = CIImage(contentsOf: url),
|
18
18
|
let exif = ciimage.properties[kCGImagePropertyExifDictionary as String] as? [String: Any] {
|