Contents

contentPositionAdjustment(forSegmentType:barMetrics:)

Returns the positioning offset for a given segment and bar metrics.

Declaration

func contentPositionAdjustment(forSegmentType leftCenterRightOrAlone: UISegmentedControl.Segment, barMetrics: UIBarMetrics) -> UIOffset

Parameters

  • leftCenterRightOrAlone:

    An identifier for a segment.

  • barMetrics:

    Bar metrics.

Return Value

The content positioning offset for the segment identified by leftCenterRightOrAlone and barMetrics.

Discussion

For more details, see setContentPositionAdjustment(_:forSegmentType:barMetrics:).

See Also

Customizing appearance