topMostViewController

private fun UIViewController.Companion.topMostViewController(): UIViewController?(source)

Companion extension to find the currently active UIViewController in the view hierarchy.