Skip to content

Commit

Permalink
[Feat] Health-Food-Me#35 - map container View Reactive Extension 메서드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
i-colours-u committed Jul 12, 2022
1 parent bfa7fa5 commit 41ce5bc
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<MapPointDataModel> {
return Binder(self.base) { containerView, point in
containerView.setSelectPoint.accept(point)
}
}
}

0 comments on commit 41ce5bc

Please sign in to comment.