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

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 titleVerticalPositionAdjustment(for: UIBarMetrics) -> CGFloat

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