set large title navigation bar swift code example Example: navigationbar large title swift self.navigationController?.navigationBar.prefersLargeTitles = true