Skip to content

Commit

Permalink
[FIX] TeamNADA#156 - 명함생성뷰 버그 해결
Browse files Browse the repository at this point in the history
- 이미지 피커 이후에도 셀이 셀렉트가 풀리지 않도록 함
- 이미지를 선택한 직후에 뷰가 다시 등장할 때 0 인덱스를 셀렉트 하도록 함
  • Loading branch information
hyun99999 committed Dec 16, 2021
1 parent e11d827 commit d58cbe1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ extension FrontCardCreationCollectionViewCell: UICollectionViewDataSource {
guard let image = UIImage(named: backgroundList[indexPath.item]) else { return UICollectionViewCell() }
cell.initCell(image: image, isFirst: false)
}

if defaultImageIndex == 0 &&
indexPath.item == 0 {
collectionView.selectItem(at: indexPath, animated: true, scrollPosition: .init())
}
return cell
}
}
Expand Down

0 comments on commit d58cbe1

Please sign in to comment.