In a project I am working on, I use a JS method called function jsMethod(selfRef)
from a Swift class. Let's say we have a class A
where this method is invoked. The selfRef
parameter holds a reference to the instance of class A
.
How can I utilize this selfRef
to access a variable or invoke a method in class A