<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISlider/thumbImage(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISlider(im)thumbImageForState:"
  },
  "title" : "thumbImage(for:)"
}
-->

# thumbImage(for:)

Returns the thumb image associated with the specified control state.

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

## Parameters

`state`

The control state whose thumb image you want to use. Specify a single control state value for this parameter.

## Return Value

The thumb image associated with the specified state, or `nil` if an appropriate image could not be retrieved. This method might return `nil` if you specify multiple control states in the `state` parameter. For a description of track and thumb images, see [`Customize the slider’s appearance`](/documentation/UIKit/UISlider#Customize-the-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)