Reflection in Swift

Or are we talking introspection?

Steven Curtis

--

Does this represent Reflection, or Introspection??

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

--

--