Replace a deprecated constant

This commit is contained in:
woxtu 2022-12-23 21:00:13 +09:00
parent 3e2282cb03
commit b00d6c0d27
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ extension NSItemProvider {
}
let data = NSMutableData()
guard let imageDestination = CGImageDestinationCreateWithData(data, kUTTypeJPEG, 1, nil) else {
guard let imageDestination = CGImageDestinationCreateWithData(data, UTType.jpeg.identifier as CFString, 1, nil) else {
continuation.resume(with: .success(nil))
assertionFailure()
return