diff --git a/Hankkijogbo/Hankkijogbo/Present/Home/View/HomeViewController.swift b/Hankkijogbo/Hankkijogbo/Present/Home/View/HomeViewController.swift index 971892fa..bc8f2f73 100644 --- a/Hankkijogbo/Hankkijogbo/Present/Home/View/HomeViewController.swift +++ b/Hankkijogbo/Hankkijogbo/Present/Home/View/HomeViewController.swift @@ -102,6 +102,9 @@ final class HomeViewController: BaseViewController, NetworkResultDelegate { private func bindViewModel() { viewModel.hankkiListsDidChange = { [weak self] data in guard let self = self else { return } + + self.viewModel.checkThumbnailHankkiValidation() + DispatchQueue.main.async { self.rootView.bottomSheetView.data = data self.rootView.bottomSheetView.updateTotalListCount(count: data.count) @@ -124,6 +127,10 @@ final class HomeViewController: BaseViewController, NetworkResultDelegate { primaryButtonText: StringLiterals.Alert.check) } + viewModel.showHankkiListBottomSheet = { + self.showHankkiListBottomSheet() + } + viewModel.getCategoryFilterAPI { [weak self] success in if success { DispatchQueue.main.async { @@ -245,12 +252,16 @@ private extension HomeViewController { } } } + + func showHankkiListBottomSheet() { + self.rootView.bottomSheetView.viewLayoutIfNeededWithDownAnimation() + self.hideMarkerInfoCard() + } } extension HomeViewController: NMFMapViewTouchDelegate, NMFMapViewCameraDelegate { func mapView(_ mapView: NMFMapView, didTapMap latlng: NMGLatLng, point: CGPoint) { - self.rootView.bottomSheetView.viewLayoutIfNeededWithDownAnimation() - self.hideMarkerInfoCard() + showHankkiListBottomSheet() } }