Skip to content

Commit

Permalink
Merge pull request #262 from TeamHavit/feature/260-categorycontents
Browse files Browse the repository at this point in the history
[FEAT] ์นดํ…Œ๊ณ ๋ฆฌ ์ฝ˜ํ…์ธ ์—์„œ ๊ฒ€์ƒ‰ ํ™”๋ฉด์œผ๋กœ ๋„˜์–ด๊ฐ€๋„๋ก
  • Loading branch information
beansbin authored Jan 22, 2022
2 parents ae85f4b + c194247 commit 7d29842
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ final class CategoryContentsViewController: BaseViewController {
filterCollectionView.dataSource = self
contentsCollectionView.delegate = self
contentsCollectionView.dataSource = self
searchController.delegate = self
searchController.searchBar.delegate = self
}

private func getNowCategory() -> Category? {
Expand Down Expand Up @@ -500,6 +502,16 @@ final class CategoryContentsViewController: BaseViewController {
}
}

extension CategoryContentsViewController: UISearchControllerDelegate {

}

extension CategoryContentsViewController: UISearchBarDelegate {
func searchBarTextDidBeginEditing(_ searchBar: UISearchBar) {
navigationController?.pushViewController(SearchContentsViewController(), animated: true)
}
}

extension CategoryContentsViewController: UICollectionViewDelegate {
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
switch collectionView {
Expand Down

0 comments on commit 7d29842

Please sign in to comment.