Introduction
Whether it is the settings app, the photos app, or even the notes app on your iPhone, you will need to navigate to different screens on every application. In settings, if you open the general section and want to go back to the previous screen, you will have to use an iOS navigation item. If you have used iOS before, you might have understood till now what we are talking about. Yes, the back button on the screen's top left corner is an iOS navigation item. We will discuss more about iOS navigation items in this article.

iOS Navigation items are shown in the navigation bar. We will learn about adding different navigation items to our navigation bar in this article. We will also discuss the different properties of the iOS navigation items and dig deeper into iOS development.
iOS Navigation Item
iOS Navigation items are displayed on the navigation bar when the associated view controller is visible. Navigation items enable the users to interact and navigate to other view controllers in the iOS applications. It's an instance of the UINavigationItem class and inherits the NSObject class.
NSObject class is the base class from which all other classes in an Objective-C class hierarchy derive their basic interface to the runtime system and their capacity to behave as Objective-C objects. It is an abstract class which means programs use instances of classes that inherit from NSObject, but never of NSObject itself.
Now, back to navigation items. Navigation item is declared in the below-given way.
@MainActor class UINavigationItem : NSObject
An iOS Navigation item reflects information about the view controller that it is displaying.
The navigation item provides a title and buttons to display on the navigation bar. The navigation bar is divided into three parts to display the navigation items as given below.
Left Item
The left item in the navigation bar provides the functionality to navigate back to the previous view controller in the navigation stack. It can be customized using the leftBarButtonItem property of the view controller's navigation item.
Center Item
It shows the title of the top-level view controller. A default bar title is displayed if it doesn't contain any custom navigation bar title view. It can be customized using the titleView property of the View Controller's navigation item.
Right Item
The contents of the right side of the navigation bar are optional, and there is no default content set for the right side. The right side of the navigation bar can be customized using the rightBarButtonItem property.

In the above picture, General is the left item, iPhone Storage is the center item, and the search icon is the right item. You can relate this to the explanations given above.
There is an important property that is very helpful in navigation, and that is the property to use the back button. backBarButtonItem property reflects the back button to be displayed on the current view controller, which is just below the topmost view controller. The back button doesn't appear on the topmost view controller, as there is nothing to return to.
Now, let's learn how to add and customize the iOS navigation items.