Contents

backgroundVerticalPositionAdjustment(for:)

Returns the background vertical position offset for specified bar metrics.

Declaration

func backgroundVerticalPositionAdjustment(for barMetrics: UIBarMetrics) -> CGFloat

Parameters

  • barMetrics:

    Bar metrics.

Return Value

The background vertical position offset for barMetrics.

Discussion

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

See Also

Customizing the background