diff --git a/Source/Pages/Gallery/YPLibraryVC+CollectionView.swift b/Source/Pages/Gallery/YPLibraryVC+CollectionView.swift index 24a666805..a13ffeb3f 100644 --- a/Source/Pages/Gallery/YPLibraryVC+CollectionView.swift +++ b/Source/Pages/Gallery/YPLibraryVC+CollectionView.swift @@ -102,8 +102,12 @@ extension YPLibraryVC { /// Checks if there can be selected more items. If no - present warning. func checkLimit() { - let isHidden = !isLimitExceeded || isMultipleSelectionEnabled == false - v.maxNumberWarningView.isHidden = isHidden + let isHidden = !isLimitExceeded || isMultipleSelectionEnabled == false + v.maxNumberWarningView.isHidden = isHidden + self.checkSelectMoreOptions(isHidden: isHidden) + } + + func checkSelectMoreOptions(isHidden: Bool = true) { if #available(iOS 14, *) { let status = PHPhotoLibrary.authorizationStatus(for: .readWrite) if status == .limited { diff --git a/Source/Pages/Gallery/YPLibraryVC.swift b/Source/Pages/Gallery/YPLibraryVC.swift index fda00e41c..5fb000e17 100644 --- a/Source/Pages/Gallery/YPLibraryVC.swift +++ b/Source/Pages/Gallery/YPLibraryVC.swift @@ -85,6 +85,8 @@ internal final class YPLibraryVC: UIViewController, YPPermissionCheckable { if YPConfig.library.defaultMultipleSelection || selectedItems.count > 1 { toggleMultipleSelection() + } else { + checkSelectMoreOptions() } }