Closed sagits closed 9 years ago
The object mapping in AlamofireJsonToObjects is don by the library EVReflection. EVReflection has 2 unit test classes with workarounds for handling issues that are not supported by Swift.
count is not a keyword. You are allowed to create a property named count. If you do have data that has a keyword as a key, then just add an underscore in front of it. for instance: var _public: String
In this case the issue is that the only way a value can be set without directly assigning it is by executing the setValue forKey function on the object. That is the basis of EVReflection. For some reason Swift does not support that for the following types:
Hi, im having an issue with an property named count:
If i wont handle 'count' case it always shows:
Is there any issue with the key 'code' ? (is it a keyword maybe) ? Thanks in advance.