Skip to content

Commit

Permalink
Bug Fix: if used grouped by date, showing camera when select first ro…
Browse files Browse the repository at this point in the history
…w in sections
  • Loading branch information
tilltue committed Jan 24, 2019
1 parent 5df3628 commit 96f706e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TLPhotoPicker.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'TLPhotoPicker'
s.version = '1.8.1'
s.version = '1.8.2'
s.summary = 'multiple phassets picker for iOS lib. like facebook'

# This description is used to generate tags and improve search results.
Expand Down
3 changes: 2 additions & 1 deletion TLPhotoPicker/Classes/TLPhotosPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,8 @@ extension TLPhotosPickerViewController: UICollectionViewDelegate,UICollectionVie
//Delegate
open func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
guard let collection = self.focusedCollection, let cell = self.collectionView.cellForItem(at: indexPath) as? TLPhotoCollectionViewCell else { return }
if collection.useCameraButton && indexPath.row == 0 {
let isCameraRow = collection.useCameraButton && indexPath.section == 0 && indexPath.row == 0
if isCameraRow {
if Platform.isSimulator {
print("not supported by the simulator.")
return
Expand Down

0 comments on commit 96f706e

Please sign in to comment.