Wednesday, July 10, 2024
HomeiOS Developmentios - Sudden Behaviour from PHPickerFilter in SwiftUI

ios – Sudden Behaviour from PHPickerFilter in SwiftUI


I’m making an attempt to filter out stay photographs and movies nonetheless. This filter doesn’t work:

I’m making an attempt to filter out stay photographs and movies. Nevertheless, I get some sudden outcomes. Doing the next it does not filter in any respect.

.photosPicker(isPresented: $shouldPresentPhotoPicker, choice: $supervisor.imageSelection, matching: .any(of: [.images, .not(.livePhotos), .not(.videos)]))

I assumed it was possibly as a result of I’m together with photographs. So I filtered out movies and stay photographs nonetheless this does not appear to filter in any respect.
.photosPicker(isPresented: $shouldPresentPhotoPicker, choice: $supervisor.imageSelection, matching: .any(of: [.not(.videos), .not(.livePhotos)]))

Any assist could be drastically appreciated.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments