add a limit of 5 videos

This commit is contained in:
leminlimez committed 2025-06-11 21:46:04 -04:00
1 parent 5268d31581
commit b782d6c7a2
1 file changed
+1 -1
@@ -51,7 +51,7 @@ struct VideoView: View {
.onDelete(perform: removeVideo)
// MARK: Select Photo Option
if selectedVideo == nil {
if selectedVideo == nil && pbManager.videos.count < 5 {
ZStack {
PhotosPicker(selection: $selectedVideo, matching: .videos, label: {
ZStack {