nidyx icon indicating copy to clipboard operation
nidyx copied to clipboard

Swift support view swift-json-gen

Open samskiter opened this issue 10 years ago • 5 comments

JSONModel is Obj-C only. Would you consider support swift via something like Swift-json-gen (https://github.com/tomlokhorst/swift-json-gen) until proper reflection API's come along to allow JSONModel to work with swift?

samskiter avatar Sep 23 '15 11:09 samskiter

Yeah, I would. I don't have a ton of experience with Swift, but as long as there are test cases, that sounds great. :+1:

cknadler avatar Sep 23 '15 16:09 cknadler

I'm just getting going in Swift but if all I need is to make the struct, this could be pretty trivial. I'll have a look at your templates a little more

samskiter avatar Sep 25 '15 10:09 samskiter

I'm currently working on getting Nidyx to spit out plain Swift models (no JSON serialization or deserialization support at first).

There are a ton of JSON frameworks out there for Swift at this point; we should examine which one(s) we want to support in Nidyx.

sethfri avatar Feb 28 '16 06:02 sethfri

@sethfri How are you getting on with this? the serialization/deserialization work looks to be there with swift-json-gen right? so if you had a model being spat out, it would hopefully be a matter of tying these things together to get a working solution? :)

samskiter avatar Jul 26 '16 17:07 samskiter

@sethfri Wonder if you would mind sharing what you had so far?

samskiter avatar Jun 27 '17 07:06 samskiter