Are default parameter values not supported in swif...
# ios
h
Are default parameter values not supported in swift/ios interop?
class Foo(val ref: () -> Long = ::defaultReference)
does not allow Foo to be instantiated in iOS without specifying a value for
ref
b
Nope. It's a Swift feature, and that interop works via Obj-C, which doesn't have that language feature
h
Thanks for clearifying. This probably should go into the interop documentation. There is no reference to default values.
b
I think the interop docs do discuss that it works via Obj-C
h
That it does, but as a person like me, who just creates a library for our iOS developers to consume this is not obvious