CDYelpFusionKit version: 2.1.0
Xcode version: 12.1
Swift version: 5.1
Platform(s) running CDYelpFusionKit: iOS
macOS version running Xcode: 11.0.1
Solution
This issue can be fixed by changing the type of those variables in CDYelpBusiness from URL? to String? and modify the mapping function accordingly. I tested this solution and imageUrl and url are no longer nil.
What did you do?
Send a normal query to Yelp
What did you expect to happen?
imageUrl
andurl
are availableWhat happened instead?
They are nil.
CDYelpFusionKit Environment
CDYelpFusionKit version: 2.1.0 Xcode version: 12.1 Swift version: 5.1 Platform(s) running CDYelpFusionKit: iOS macOS version running Xcode: 11.0.1
Solution
This issue can be fixed by changing the type of those variables in
CDYelpBusiness
fromURL?
toString?
and modify the mapping function accordingly. I tested this solution andimageUrl
andurl
are no longer nil.