Skip to content

Commit

Permalink
✨[FEAT] #146 - 셀 눌렀을 때 뷰전환 이벤트 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
jumining committed Jan 19, 2023
1 parent c3d58ce commit e88ae4d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ extension LikedStudiosViewController {
// MARK: - UICollectionViewDelegate
extension LikedStudiosViewController: UICollectionViewDelegate {
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
// TODO: - 뷰 전환
let selectedStudioId = likedStudiosList[indexPath.row].id
NotificationCenter.default.post(name: NSNotification.Name("GetLatLng"), object: selectedStudioId, userInfo: nil)
let studioMapViewController = StudioMapViewController(contentViewController: StudioMapContentViewController())
studioMapViewController.modalTransitionStyle = .coverVertical
studioMapViewController.modalPresentationStyle = .fullScreen
self.present(studioMapViewController, animated: true, completion: nil)
}

func scrollViewDidScroll(_ scrollView: UIScrollView) {
Expand Down

0 comments on commit e88ae4d

Please sign in to comment.