add a limit of 5 videos
This commit is contained in:
1 parent
5268d31581
commit
b782d6c7a2
1 file changed
+1
-1
@@ -51,7 +51,7 @@ struct VideoView: View {
|
|||||||
.onDelete(perform: removeVideo)
|
.onDelete(perform: removeVideo)
|
||||||
|
|
||||||
// MARK: Select Photo Option
|
// MARK: Select Photo Option
|
||||||
if selectedVideo == nil {
|
if selectedVideo == nil && pbManager.videos.count < 5 {
|
||||||
ZStack {
|
ZStack {
|
||||||
PhotosPicker(selection: $selectedVideo, matching: .videos, label: {
|
PhotosPicker(selection: $selectedVideo, matching: .videos, label: {
|
||||||
ZStack {
|
ZStack {
|
||||||
|
|||||||
Reference in new issue
Block a user