The view controllers currently on the navigation stack.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The root view controller is at index
0 in the array, the back view controller is at index
n-2, and the top controller is at index
n is the number of items in the array.
Assigning a new array of view controllers to this property is equivalent to calling the
set method with the
animated parameter set to