<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPVolumeView/volumeThumbRect(forBounds:volumeSliderRect:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPVolumeView(im)volumeThumbRectForBounds:volumeSliderRect:value:"
  },
  "title" : "volumeThumbRect(forBounds:volumeSliderRect:value:)"
}
-->

# volumeThumbRect(forBounds:volumeSliderRect:value:)

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

```
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:)`](/documentation/MediaPlayer/MPVolumeView/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)