Instance Method

titleVerticalPositionAdjustment(for:)

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

Declaration

func titleVerticalPositionAdjustment(for barMetrics: UIBarMetrics) -> CGFloat

Parameters

barMetrics

A bar metrics constant.

Return Value

The title’s vertical position adjustment for barMetrics.

See Also

Customizing the Title's Appearance

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.

var prefersLargeTitles: Bool

A Boolean value indicating whether the title should be displayed in a large format.

func setTitleVerticalPositionAdjustment(CGFloat, for: UIBarMetrics)

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