Instance Property

apportionsSegmentWidthsByContent

Indicates whether the control attempts to adjust segment widths based on their content widths.

Declaration

var apportionsSegmentWidthsByContent: Bool { get set }

Discussion

If the value of this property is true, for segments whose width value is 0, the control attempts to adjust segment widths based on their content widths.

The default is false.

See Also

Managing Segment Behavior and Appearance

var isMomentary: Bool

A Boolean value that determines whether segments in the receiver show selected state.

func setEnabled(Bool, forSegmentAt: Int)

Enables the specified segment.

func isEnabledForSegment(at: Int) -> Bool

Returns whether the indicated segment is enabled.

func setContentOffset(CGSize, forSegmentAt: Int)

Adjusts the offset for drawing the content (image or text) of the specified segment.

func contentOffsetForSegment(at: Int) -> CGSize

Returns the offset for drawing the content (image or text) of the specified segment.

func setWidth(CGFloat, forSegmentAt: Int)

Sets the width of the specified segment of the receiver.

func widthForSegment(at: Int) -> CGFloat

Returns the width of the indicated segment of the receiver.