Thanks for the feedback. So your question was more about calling a func from VC2 in VC1. Effectively, in this case, delegation is a very good pattern. I had forgotten this old thread… Another one may be notification.
It is really hard (and a bit frustrating) to try to help with the limited information you give and see that the problem is (according to you) in a place you did not show. So please, show comprehensive code if you want more help.
@GMacD53 Sorry, that was about another answer. I have edited my answer to make it clear who I was answering to. But maybe I missed some points on your question (I asked you if it was about extension, you did not answer). You don't show enough to tell if there is any risk in your code, except for readability if you do not follow Swift conventions. Anyway, wish you good learning.
Thanks for the feedback. So your question was more about calling a func from VC2 in VC1. Effectively, in this case, delegation is a very good pattern. I had forgotten this old thread… Another one may be notification.
It is really hard (and a bit frustrating) to try to help with the limited information you give and see that the problem is (according to you) in a place you did not show. So please, show comprehensive code if you want more help.
@GMacD53 Sorry, that was about another answer. I have edited my answer to make it clear who I was answering to. But maybe I missed some points on your question (I asked you if it was about extension, you did not answer). You don't show enough to tell if there is any risk in your code, except for readability if you do not follow Swift conventions. Anyway, wish you good learning.