Post

Replies

Boosts

Views

Activity

Reply to SwiftUI PhotosPicker does not work
provider.loadItem(forTypeIdentifier: "public.movie") { url, error in guard let videoURL = url as? URL else { debugPrint("Error loading video URL: (error?.localizedDescription ?? "")") return } } I am using Apple photo library and trying to load video using above code but it gives me url like this: file:///private/var/mobile/Containers/Shared/AppGroup/82DEA83D-2D23-458E-8B7A-7B47924BF3BA/File%20Provider%20Storage/photospicker/uuid=E1C42B07-6A92-4A15-A324-03CDA69447C0&library=1&type=3&mode=1&loc=true&cap=true.mov And once i move to upload process than i get error: provided url is a directory. Any thoughts, is i'm doing something wrong or its a bug? Thanks
Apr ’24