Skip to content

Commit d87b041

Browse files
author
Christian Elies
committed
chore(example): allow multi selection in browser views
1 parent 2e6d683 commit d87b041

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Example/Media-Example/Views/BrowserSection.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct BrowserSection: View {
2626
.fullScreenCover(isPresented: $isLivePhotoBrowserViewVisible, onDismiss: {
2727
isLivePhotoBrowserViewVisible = false
2828
}) {
29-
LivePhoto.browser { _ in }
29+
LivePhoto.browser(selectionLimit: 0) { _ in }
3030
}
3131

3232
Button(action: {
@@ -37,7 +37,7 @@ struct BrowserSection: View {
3737
.fullScreenCover(isPresented: $isMediaBrowserViewVisible, onDismiss: {
3838
isMediaBrowserViewVisible = false
3939
}) {
40-
Media.browser { _ in }
40+
Media.browser(selectionLimit: 0) { _ in }
4141
}
4242

4343
Button(action: {
@@ -48,7 +48,7 @@ struct BrowserSection: View {
4848
.fullScreenCover(isPresented: $isPhotoBrowserViewVisible, onDismiss: {
4949
isPhotoBrowserViewVisible = false
5050
}) {
51-
Photo.browser { _ in }
51+
Photo.browser(selectionLimit: 0) { _ in }
5252
}
5353

5454
Button(action: {
@@ -59,7 +59,7 @@ struct BrowserSection: View {
5959
.fullScreenCover(isPresented: $isVideoBrowserViewVisible, onDismiss: {
6060
isVideoBrowserViewVisible = false
6161
}) {
62-
Video.browser { _ in }
62+
Video.browser(selectionLimit: 0) { _ in }
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)