Reflection in Swift
Or are we talking introspection?
3 min readSep 16, 2019
It is often claimed that reflection is not really used in Swift as it is a statically typed language, but actually it gives us read-only access to an object’s properties (importantly) at runtime.
If you have a class you can use reflection to iterate through all of the values