<!--
{
  "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/setVolumeThumbImage(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPVolumeView(im)setVolumeThumbImage:forState:"
  },
  "title" : "setVolumeThumbImage(_:for:)"
}
-->

# setVolumeThumbImage(_:for:)

Assigns a thumb image to the specified control states.

```
func setVolumeThumbImage(_ image: UIImage?, for state: UIControl.State)
```

## Parameters

`image`

The thumb image to associate with the specified states.

`state`

The control state with which to associate the image.

## Discussion

For a description of slider and thumb images, see [`Customizing the volume slider’s appearance`](/documentation/MediaPlayer/MPVolumeView#Customizing-the-volume-sliders-appearance).

---

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)