UIStoryboard initializer should return optional or throw in a swifty way

Originator:Benny.Lach
Number:rdar://36734474 Date Originated:21/01/2018
Status:open Resolved:
Product:UIKit Product Version:15C107
Classification:Serious Bug Reproducible:YES
 
Summary: Initializing a Storyboard with a non valid name throws immediately, can't be handled by do-catch nor is the return type optional.


Steps to Reproduce: Try to init a non existing Storyboard 


Expected Results: It should be possible to handle a non existing name using a do-catch-Block or it shouldn't throw at all and just return an optional.


Actual Results: Throws immediately on runtime an can't be handled in a swifty way


Version/Build: Xcode 9.2 (9C40b), iOS 11.2 (15C107) 


Configuration: nothing special

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!