Contents

volumeThumbRect(forBounds:volumeSliderRect:value:)

Returns the drawing rectangle for the volume slider’s thumb image.

Declaration

func volumeThumbRect(forBounds bounds: CGRect, volumeSliderRect rect: CGRect, value: Float) -> CGRect

Parameters

  • bounds:

    The bounding rectangle of the thumb image.

  • rect:

    The drawing rectangle for the receiver’s track, as returned by the Volumesliderrect(forbounds:) method.

  • value:

    The current value of the volume slider.

Return Value

The computed drawing rectangle for the thumb image.

Discussion

The rectangle you return should reflect the size of your thumb image and its current position on the slider’s track.

See Also

Customizing the volume slider