Oct 23, 2020
Unfortunately swift can not communicate with Unity3D directly. So you have to do it from Objective-C file.
For example, call UnityGetGLViewController() from the objective-C file for get the current ViewController and pass it to the swift file using parameter.