Closed AdieOlami closed 5 years ago
Did you add the pod spec
pod 'EVReflection/MoyaRxSwift'
And did you add
import EVReflection
at the top of that file?
Yes I did. I only say Rmap
Ah, true, there were conflicts when using the same .map function between reactive and not. Therefore I had to rename the reactive map to Rmap. Please have a look at the MoyaRxSwiftTests unit test file to see it in action. In your case you should use
provider.request(.nutritionHistory(date: Date)) { (result) in
switch result {
case .success(let response):
do {
let parsed = try response.RmapArray(to: NutritionHistory.self)
Just reopen this if it's still an issue
I’m trying out with rx but there seems to be nothing like .map(toArray:....)
What could be the issue please