I'm writing a library with a UIViewController that I would like to present as fullscreen, but am so far unsuccessful. I'm calling
viewContoller.presentViewContoller(this, animated = true, completion = null)
but it presents as a modal just the same as calling
viewController?.presentModalViewController(this, animated = true)
. I've also tried explicitly calling
viewController?.setModalPresentationStyle(UIModalPresentationFullScreen)
with the latter. Any idea what I'm doing wrong?