Posting my comment as an answer:
The issue is that in ObjC swift functions x(cell:)
and x(withCell:)
are converted to xWithCell:
. That is why it doesn’t allow that. Other function you wrote is converted to xOnCell:
which is a different method compared to this. This has nothing to do with overloading in ObjC as it doesn’t fall into overloading. It is just a different function signature. Hope that helps.
solved Swift compilation error when using different function names x(cell:) and x(withCell:)