As an experienced Objective-C developer who is currently learning Swift, I really miss some of the reflected and dynamic functions of Objective-C.
For example, I wrote a JSON serializer that automatically matched keys and values ββusing the KVO and Objective-C introspection, and there are open-source libraries like Mantle that do this.
I can declare my object a subclass of NSObject and continue, but I feel this is not a quick way to do things.
Is there any other way to accomplish the same tasks avoiding patterns using what Swift offers?
source share