Skip to content

let me know if you know a better way to do this :) #5

@BillCarsonFr

Description

@BillCarsonFr

Hi,

Instead of presenting the Safari ViewController other the current context, i saw this alternative in StackOverFlow (http://stackoverflow.com/questions/33089919/how-to-hide-sfsafariviewcontroller)

        let windowRootController = UIViewController()
        self.secondWindow = UIWindow(frame:CGRectZero)
        self.secondWindow!.rootViewController = windowRootController
        self.secondWindow!.makeKeyAndVisible()
        self.secondWindow?.alpha = 0

        windowRootController.presentViewController(safari, animated: false, completion: nil)

It seems to have some advantages, has it's not blocking the current vue from user interactions, and one can also do it way before the viewDidLoad(). What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions