setBackButtonBackgroundVerticalPositionAdjustment(_:for:)
Sets the back button vertical position offset for specified bar metrics.
Declaration
func setBackButtonBackgroundVerticalPositionAdjustment(_ adjustment: CGFloat, for barMetrics: UIBarMetrics)Parameters
- adjustment:
The back button vertical position offset for
barMetrics. - barMetrics:
Bar metrics.
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.