There is wrong code in the section “For the more curious: How is the Storyboard loaded”
The code starts out with
which is what you would guess it works, but if anyone would have ever tried that code he would have found out that the initializer for storyboards using a name is actually NOT failable.
This is a gross mistake on Apple’s part (wrong annotation in the Objective-C header) because the initializer actually will return nil when it can’t find the storyboard, but you cannot test for it as Swift is typesafe and strongly thinks now the result can’t be nil.
So the only thing you actually can do is write
and have your app crash when it can’t find the storyboard. (It’s not that bad, since this would happen during development anyway)