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

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

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software