Hello! Back again!
I am maintaining an object-method pair as host object properties:
var target : Any? = nil
var action : Selector
and desire to call the method at some point from my host object:
if self.target != nil {
(self.target)?.action
}
For my attempted call, Xcode is giving me the error:
Type of expression is ambiguous without more context
I have tried various methods of calling the method to no avail. My research in the documentation isn't revealing the right way to do this. Can you please help me figure it out?
Thank you all!