Contents

backButtonBackgroundVerticalPositionAdjustment(for:)

Returns the back button vertical position offset for specified bar metrics.

Declaration

func backButtonBackgroundVerticalPositionAdjustment(for barMetrics: UIBarMetrics) -> CGFloat

Parameters

  • barMetrics:

    Bar metrics.

Return Value

The back button vertical position offset for barMetrics.

Discussion

This modifier applies only to navigation bar back buttons and is ignored by other buttons.

This offset is used to adjust the vertical centering of bordered bar buttons within the bar.

See Also

Customizing the Back button