contentPositionAdjustment(forSegmentType:barMetrics:)
Returns the positioning offset for a given segment and bar metrics.
Declaration
func contentPositionAdjustment(forSegmentType leftCenterRightOrAlone: UISegmentedControl.Segment, barMetrics: UIBarMetrics) -> UIOffsetParameters
- 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
selectedSegmentTintColorbackgroundImage(for:barMetrics:)setBackgroundImage(_:for:barMetrics:)setContentPositionAdjustment(_:forSegmentType:barMetrics:)UISegmentedControl.SegmentdividerImage(forLeftSegmentState:rightSegmentState:barMetrics:)setDividerImage(_:forLeftSegmentState:rightSegmentState:barMetrics:)titleTextAttributes(for:)setTitleTextAttributes(_:for:)