Blank SFSafariViewController

Originator:robert.wijas
Number:rdar://29108332 Date Originated:04-Nov-2016 10:59 AM
Status:Open Resolved:
Product:iOS SDK Product Version:10
Classification:Other Bug Reproducible:Always
 
Summary:
When you create SFSafariViewController during controller presentation and then later try to present that SFSafariViewController, then the presented SFSafariViewController is blank.

Steps to Reproduce:
See attached sample project.

Expected Results:
Presented SFSafariViewController should be properly presented.

Actual Results:
Presented SFSafariViewController is blank.

Notes:
Looks like the underlying SFSafariViewController remote child view controller is not added to the window.

Comments

Possible fix

Hello,

I've added an answer here that fixes it for me:

https://stackoverflow.com/questions/46439142/sfsafariviewcontroller-blank-in-ios-11-xcode-9-0/47349607#47349607

I still think it's an Apple bug, to the extent there should be an indication that the window displaying SFSafariViewController needs to be key.

Let me know if that helps

Sample Project

https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/29108332%20-%20BlankSafariViewController

By robert.wijas at Nov. 4, 2016, 10:05 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!