How to get the Current View Controller when creating extension

heshamg

  • Posts: 90
Hey,

I need to create an extension, but inside I am required to get hold of the currentViewController..
I am not so familiar with how openfl works.. but would this do?
[[UIApplication sharedApplication] keyWindow].rootViewController]

is this the main view of the game?

Thanks!!