Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,26 +176,17 @@ final class AdminViewController: BaseViewController, View {
adminUseCase.fetchStoreDetail(id: store.id)
.observe(on: MainScheduler.instance)
.subscribe(
onNext: { [weak self] storeDetail in
onNext: { [weak self] _ in
guard let self = self else { return }
let updateParams = UpdateStoreParams(
id: storeDetail.id,
name: storeDetail.name,
categoryId: storeDetail.categoryId,
desc: storeDetail.description,
address: storeDetail.address,
startDate: storeDetail.startDate,
endDate: storeDetail.endDate,
mainImageUrl: storeDetail.mainImageUrl,
imageUrlList: storeDetail.images.map { $0.imageUrl },
imagesToDelete: [],
latitude: storeDetail.latitude,
longitude: storeDetail.longitude,
markerTitle: storeDetail.markerTitle,
markerSnippet: storeDetail.markerSnippet,
startDateBeforeEndDate: true
let registerVC = PopUpStoreRegisterViewController(
nickname: self.nickname,
editingStore: store
)
let registerVC = PopUpStoreRegisterViewController(nickname: self.nickname)

registerVC.completionHandler = { [weak self] in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completion 사용의 이유가 있을까요? rx로 동기 비동기를 처리하고 있는 상황인 것 같아서 호기심에 여쭤봅니다!

self?.reactor?.action.onNext(.reloadData)
}

self.navigationController?.pushViewController(registerVC, animated: true)
},
onError: { [weak self] error in
Expand All @@ -206,7 +197,6 @@ final class AdminViewController: BaseViewController, View {
}

private func deleteStore(_ store: AdminStore) {
// 먼저 스토어 상세 정보를 가져와 모든 이미지 URL을 확인
adminUseCase.fetchStoreDetail(id: store.id)
.observe(on: MainScheduler.instance)
.subscribe(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ class FullScreenMapViewController: MapViewController {
let position = NMGLatLng(lat: store.latitude, lng: store.longitude)

let cameraUpdate = NMFCameraUpdate(scrollTo: position, zoomTo: 15.0)
cameraUpdate.animation = .easeIn
cameraUpdate.animationDuration = 0.3
mainView.mapView.cancelTransitions()
cameraUpdate.animation = .none
mainView.mapView.moveCamera(cameraUpdate)

if let existingMarker = initialMarker {
Expand Down Expand Up @@ -210,8 +210,8 @@ class FullScreenMapViewController: MapViewController {
mainView.setStoreCardHidden(false, animated: true)

let cameraUpdate = NMFCameraUpdate(scrollTo: marker.position, zoomTo: 15.0)
cameraUpdate.animation = .easeIn
cameraUpdate.animationDuration = 0.3
mainView.mapView.cancelTransitions()
cameraUpdate.animation = .none
mainView.mapView.moveCamera(cameraUpdate)

DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { [weak self] in
Expand Down