File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class HomeViewController: UIViewController {
5858
5959 override func viewWillAppear( _ animated: Bool ) {
6060 super. viewWillAppear ( animated)
61+ print ( " HHH " )
6162 // loadAnnotations()
6263 }
6364
@@ -193,8 +194,8 @@ extension HomeViewController: MKMapViewDelegate {
193194 let visibleAnnotations = mapView. annotations ( in: mapView. visibleMapRect)
194195 let visibleMarkers = visibleAnnotations. compactMap { $0 as? CustomAnnotation }
195196 // BottomSheet의 CollectionView 업데이트
196- adapter? . data = visibleMarkers. map { $0. pinData }
197- bottomSheet. collectionView. reloadData ( )
197+ // adapter?.data = visibleMarkers.map{ $0.pinData }
198+ // bottomSheet.collectionView.reloadData()
198199 }
199200}
200201
@@ -224,7 +225,8 @@ extension HomeViewController: PinCollectionViewAdapterDelegate {
224225 func selectedItem( selected: PinEntity ) {
225226 print ( " Selected: \( selected) " )
226227 // 여기서 화면 이동
227- // PinDetailViewController(usecase: usecase, pin: selected)
228+ let vc = PinDetailViewController ( selected)
229+ present ( vc, animated: true )
228230 }
229231
230232 func deletedItem( deleted: PinEntity ? ) {
You can’t perform that action at this time.
0 commit comments