You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The objCClassWrapper case is not supported in createInstance(...). Specifically, URL and NSURL were both tried.
Interestingly, it does work if the property is Optional.
(lldb) po kind
Runtime.Kind.objCClassWrapper
The text was updated successfully, but these errors were encountered:
Taking a look now. As a temporary work around you should be able to make URL conform to DefaultConstructor, and you can tell it how to construct a default value for the object.
Hey @wickwirew
So far I've learned that URL is a little exceptional in that it doesn't like to be empty.
But I did experiment with the Factory in my own fork (https://github.com/wildthink/Runtime) that is working but I have not yet done a lot of testing on it. I'm not sure this is a good solution; the Swift Runtime system is still new to me.
The
objCClassWrapper
case is not supported increateInstance(...)
. Specifically,URL
andNSURL
were both tried.Interestingly, it does work if the property is
Optional
.The text was updated successfully, but these errors were encountered: