UIWindow is declared with 2 question marks --> UIWindow?? (at least autocompletion says so) What does this mean? I'm pretty sure it's not nil coalescing operator.
Maybe that is a poor choice of words... The window property of appDelegate is of type UIWindow??.