Works around UIViewController.view because it has sideeffects.