allaboutapps / Toolbox

MIT License
8 stars 3 forks source link

Modal Presentation Style on RootViewController has no effect in coordinator #18

Open ntcw opened 3 years ago

ntcw commented 3 years ago

[Assert] Setting modalPresentationStyle once presentationController has been accessed will have no effect until <UINavigationController: 0x7f918a064a00> is presented, dismissed, and presented again.

`public init(rootViewController: UIViewController = UIViewController()) { self.rootViewController = rootViewController

    super.init()

    if rootViewController.presentationController?.delegate == nil {
        rootViewController.presentationController?.delegate = self
    }
}`