diff --git a/HealthFoodMe/HealthFoodMe/Presentation/Map/MainMapScene/Views/mapContainerView + Reactive.swift b/HealthFoodMe/HealthFoodMe/Presentation/Map/MainMapScene/Views/mapContainerView + Reactive.swift new file mode 100644 index 00000000..050e8591 --- /dev/null +++ b/HealthFoodMe/HealthFoodMe/Presentation/Map/MainMapScene/Views/mapContainerView + Reactive.swift @@ -0,0 +1,26 @@ +// +// NaverMapContainerView + Reactive.swift +// NaverMap + RxDelegate +// +// Created by 송지훈 on 2022/07/12. +// + +import NMapsMap +import RxCocoa +import RxSwift + +extension Reactive where Base: NaverMapContainerView { + internal var pointList: Binder<[MapPointDataModel]> { + return Binder(self.base) { containerView, points in + containerView.pointList.accept(points) + } + } +} + +extension Reactive where Base: NaverMapContainerView { + internal var currentSelectPoint: Binder { + return Binder(self.base) { containerView, point in + containerView.setSelectPoint.accept(point) + } + } +}