Woah! NSClassFromString() lookups work with native Swift classes. /via @mjtsai http://mjtsai.com/blog/2015/07/23/dynamic-swift/#comment-2482853 … (David Koretzky)
@Kametrixom You still get to cast the return value from NSClassFromString() to make sure it’s what you think it is…
-
-
@mjtsai True, but the initializing with a String is very ugly and you have to watch typos. Generics are more to my liking -
@Kametrixom@mjtsai they solve different problems. And the typo will fail. You need to be using as? instead of as!, no safety loss. -
- View other replies
-
@Kametrixom@owensd The class may not even exist at compile time.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
David Owens II
Kametrixom

Michael Tsai