This commit is contained in:
Thomas Ricouard 2024-02-05 08:59:27 +01:00
parent d10adf1fd9
commit cfd6eed159

View file

@ -111,7 +111,7 @@ extension StatusEditor {
} }
.photosPicker(isPresented: $isPhotosPickerPresented, .photosPicker(isPresented: $isPhotosPickerPresented,
selection: $viewModel.mediaPickers, selection: $viewModel.mediaPickers,
maxSelectionCount: 4, maxSelectionCount: currentInstance.instance?.configuration?.statuses.maxMediaAttachments ?? 4,
matching: .any(of: [.images, .videos]), matching: .any(of: [.images, .videos]),
photoLibrary: .shared()) photoLibrary: .shared())
.fileImporter(isPresented: $isFileImporterPresented, .fileImporter(isPresented: $isFileImporterPresented,