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

# maximumVolumeSliderImage(for:)

Returns the maximum volume image associated with the specified control state.

```
func maximumVolumeSliderImage(for state: UIControl.State) -> UIImage?
```

## Parameters

`state`

The control state whose maximum volume image you want. You should specify only one control state value for this parameter.

## Return Value

The maximum volume image associated with the specified state, or <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0> if an appropriate image could not be retrieved. This method might return <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0> if you specify multiple control states in the `state` parameter.

## 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)