Angelo Di Paolo (via Aaron Brager): Swift offers metatype type to refer to the type of any Swift type such as enumerations, structures, and protocols. To access the value of the metatype type use the postfix self expression. […] Now the value of objectType can be used to create a new SomeClass instance just like … Continue reading Simple Reflection in Swift
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed