Is there a Simple way in Swift to iterate over the attributes of a class.
i.e. i have a class Person, and it has 3 attributes: name, lastname, age.
is there
Apple didn't remove reflect,they just change it to _reflect,they also changed MirrorType to _MirrorType. The Swift 2.0 version of @Teemu Kurppa 's code:
reflect
_reflect
MirrorType
_MirrorType
func print_properties(mirror: _MirrorType) { for i in 0..