Skip to content

Commit

Permalink
[Fix] 북마크뷰에서 아티클 클릭 시 아티클디테일뷰로 연결(Team-LionHeart#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjk4618 committed Jul 21, 2023
1 parent 3f7d845 commit e85db36
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ extension BookmarkViewController: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
if indexPath.section == 0 {
let cell = BookmarkDetailCollectionViewCell.dequeueReusableCell(to: collectionView, indexPath: indexPath)
cell.inputData = bookmarkAppData
return cell
} else {
let cell = BookmarkListCollectionViewCell.dequeueReusableCell(to: collectionView, indexPath: indexPath)
Expand Down Expand Up @@ -178,3 +179,9 @@ extension BookmarkViewController: UICollectionViewDelegateFlowLayout {
section == 1 ? 20 : CGFloat()
}
}

extension BookmarkViewController: UICollectionViewDelegate {
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
self.presentArticleDetailFullScreen(articleID: bookmarkList[indexPath.item].articleID)
}
}

0 comments on commit e85db36

Please sign in to comment.