Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SFSafariViewController presentViewController animation

Tags:

ios

swift

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?

like image 320
Code Avatar asked Jan 26 '16 06:01

Code


1 Answers

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

like image 194
Code Avatar answered Nov 18 '22 19:11

Code