Came here with the same issue but then also found a thread discussing a modifier for photosPicker similar to .sheet (https://developer.apple.com/forums/thread/713564)
.toolbar {
ToolbarItem(placement: .primaryAction) {
Menu {
Button {
showingPhotosPicker.toggle()
} label: {
Label("Add Photo", systemImage: "photo.on.rectangle")
}
} label: {
Label ("More", systemImage: "ellipsis.circle")
}
}
}
.photosPicker(isPresented: $showingPhotosPicker, selection: $selectedItems, matching: .any(of: [.images, .screenshots, .livePhotos]))
}
Topic:
Media Technologies
SubTopic:
Photos & Camera
Tags: