setRightBarButtonItems(_:animated:)
Sets the right bar button items, optionally animating the transition to the new items.
Declaration
func setRightBarButtonItems(_ items: [UIBarButtonItem]?, animated: Bool)Parameters
Discussion
If two navigation items have the same custom left or right bar button items, those bar button items remain stationary during the transition when the navigation item is pushed or popped.