Contents

navigationBar(_:shouldPush:)

Returns a Boolean value indicating whether the navigation bar should push an item.

Declaration

optional func navigationBar(_ navigationBar: UINavigationBar, shouldPush item: UINavigationItem) -> Bool

Parameters

  • navigationBar:

    The navigation bar that the item is being pushed onto.

  • item:

    The navigation item that is being pushed.

Return Value

true if the item should be pushed; otherwise, false.

Discussion

Sent to the delegate before pushing an item onto the navigation bar.

See Also

Pushing items