SFSafariViewController captures the window too early and can fail with a blank screen when this changes; leaving the remote view unconnected.
| Originator: | steipete | ||
| Number: | rdar://29108474 | Date Originated: | 04-Nov-2016 11:19 AM |
| Status: | Open | Resolved: | |
| Product: | iOS/UIKit | Product Version: | iOS 10.1 |
| Classification: | bug | Reproducible: |
Peter Steinberger04-Nov-2016 11:19 AM Area: UIKit 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. Version: iOS 10.1 Notes: Looks like the underlying SFSafariViewController remote child view controller is not added to the window. Configuration: iPad Pro 1 (9.7) Attachments: successfully uploaded.
Comments
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!
Apple responded
Engineering has the following feedback for you:
You should not initialize an SFSafariViewController long before you present it, you should initialize it right before you present it.
We are now closing this bug report.
Sample at https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/29108332%20-%20BlankSafariViewController