Skip to content

Commit 6878135

Browse files
Weizzztilltue
authored andcommitted
fix photos Button For limit permission not available
1 parent e559cab commit 6878135

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TLPhotoPicker/Classes/TLPhotosPickerViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ extension TLPhotosPickerViewController: TLPhotoLibraryDelegate {
595595
func loadCompleteAllCollection(collections: [TLAssetsCollection]) {
596596
self.collections = collections
597597
self.focusFirstCollection()
598-
let isEmpty = !self.collections.contains(where: { $0.assetCount > 0 })
598+
let isEmpty = !self.collections.contains(where: { $0.assetCount > 0 || $0.useCameraButton })
599599
self.subTitleStackView.isHidden = isEmpty
600600
self.emptyView.isHidden = !isEmpty
601601
self.emptyImageView.isHidden = self.emptyImageView.image == nil

0 commit comments

Comments
 (0)