Merge pull request #811 from woxtu/uti

Replace a deprecated constant
This commit is contained in:
Nathan Mattes 2022-12-23 20:31:39 +01:00 committed by GitHub
commit e56ab2aa4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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