[Share Extension] Use the proper identifier for if statement on iOS (#5505)
This commit is contained in:
@@ -101,7 +101,7 @@ class ShareViewController: UIViewController {
|
|||||||
private func handleVideos(items: [NSItemProvider]) async {
|
private func handleVideos(items: [NSItemProvider]) async {
|
||||||
let firstItem = items.first
|
let firstItem = items.first
|
||||||
|
|
||||||
if let dataUri = try? await firstItem?.loadItem(forTypeIdentifier: "public.video") as? URL {
|
if let dataUri = try? await firstItem?.loadItem(forTypeIdentifier: "public.movie") as? URL {
|
||||||
let ext = String(dataUri.lastPathComponent.split(separator: ".").last ?? "mp4")
|
let ext = String(dataUri.lastPathComponent.split(separator: ".").last ?? "mp4")
|
||||||
if let tempUrl = getTempUrl(ext: ext) {
|
if let tempUrl = getTempUrl(ext: ext) {
|
||||||
let data = try? Data(contentsOf: dataUri)
|
let data = try? Data(contentsOf: dataUri)
|
||||||
|
|||||||
Reference in New Issue
Block a user