Is there any way to use the PhotosUI PhotosPicker api in SwiftUI, but limit the user to picking only a single album, not individual photos or even multiple individual photos? The .photosPickerDisabledCapabilities modifier does not contain an option for this, so is my only option to use the UIKit api inside a UIViewControllerRepresentable?
Is there any way to use the PhotosUI PhotosPicker api in SwiftUI, but limit the user to picking only a single album, not individual photos or even multiple individual photos? The .photosPickerDisabledCapabilities modifier does not contain an option for this, so is my only option to use the UIKit api inside a UIViewControllerRepresentable?
Is there any way to use the PhotosUI PhotosPicker api in SwiftUI, but limit the user to picking only a single album, not individual photos or even multiple individual photos? The .photosPickerDisabledCapabilities modifier does not contain an option...
Следующий код, кажется, отлично работает в новом приложении, но в моем существующем приложении он всегда терпит неудачу с сообщением об ошибке ниже. Я изо всех сил пытаюсь найти в своем приложении что-нибудь, что вызывает эту проблему.
Проблема в том, что я пытаюсь загрузить видео из галереи в свое приложение, но у меня ничего не получается. Вот соответствующие фрагменты кода.
Это моя передаваемая структура.
struct Movie: Transferable {
let url: URL
Beiftui Beginner здесь. Фотоспикер встроен в представление, представленное с помощью перехода на навигации Zoom (из моего герового). Я подозреваю, что обработка жестов, связанная с навигационным переходом, может мешать поведению по умолчанию по...