2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Merge pull request 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

@ -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