Instance Method

setTitleVerticalPositionAdjustment(_:for:)

Sets the title’s vertical position adjustment for given bar metrics.

Declaration

func setTitleVerticalPositionAdjustment(_ adjustment: CGFloat, for barMetrics: UIBarMetrics)

Parameters

adjustment

The title’s vertical position adjustment for barMetrics.

barMetrics

A bar metrics constant.

See Also

Configuring the Title

var titleTextAttributes: [NSAttributedString.Key : Any]?

Display attributes for the bar’s title text.

var largeTitleTextAttributes: [NSAttributedString.Key : Any]?

Display attributes for the bar's large title text.

func titleVerticalPositionAdjustment(for: UIBarMetrics) -> CGFloat

Returns the title’s vertical position adjustment for given bar metrics.