Runtime warning

Product:PDFTron Demo

Please give a brief summary of your issue:
-We are getting runtime warning (Purple line) in xcode when we are trying to load pdf file and adding DocumentsController as child Controller
-Is their any way to avoid that? or better approach to add it as child controller.

Steps to produce:

  • Add this attached controller file to project, add any pdf file and try to load it with this controller

Attaching VC that loads pdf:
ViewController.swift (1.2 KB)

ScreenShot:

Thanks.

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi there,

The runtime warning can be ignored - we will look into resolving it in a future update to the SDK.

Regarding UIViewController containment, you can consult the following Apple documentation: Apple Developer Documentation
Please note that in general, we recommend showing instances of the PTDocumentController class inside a UINavigationController, presented modally if possible.