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.

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