forked from Health-Food-Me/Health-Food-Me-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feat] Health-Food-Me#35 - map container View Reactive Extension 메서드 추가
- Loading branch information
1 parent
bfa7fa5
commit 41ce5bc
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...FoodMe/HealthFoodMe/Presentation/Map/MainMapScene/Views/mapContainerView + Reactive.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} | ||
} |