Hello, World! I'm trying to use an extension fun...
# multiplatform
b
Hello, World! I'm trying to use an extension fun from Swift and it looks like it's exported as a method that takes the receiver as its first argument (so, not usable as an extension in Swift). Is that normal / a known limitation, or am I doing something wrong? (note: it's an extension on an Interface, if that changes anything)
b
It sounds like maybe an
interface
extension?
b
that's right
b
Ah yes so that doesn't map to an Obj-C feature, and right now the interop works through Obj-C. Extensions on classes work as expected. Extensions on interfaces result in this interop 😬
Protocol extension, which is what you might expect, is a Swift-only feature
b
I see. Thanks a lot! Too bad this is not documented (or I didn't find it at least) 🙂