In Swift, leftBarButtonItems is an optional array [UIBarButtonItem]?,
therefore it can be enumerated with optional chaining and forEach().
customView is also an optional UIView?, so assignment to the alpha
property is done with optional chaining as well: