15

When I call presentViewController(mySafariViewController, animated: true, completion: nil), the view always animates from the right side like a navigation controller.

I tried calling mySafariViewController.modalTransitionStyle = .CoverVertical but it doesn't work.

How can I change this?

1 Answer 1

27

I had to call mySafariViewController.modalPresentationStyle = .overFullScreen (Swift 3 syntax)

1
  • 2
    Looks like SFSafariViewController has different default behaviour that other view controller towards modal presentation. Commented Oct 21, 2016 at 1:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.