<!--
{
  "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/currentMaximumTrackImage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISlider(py)currentMaximumTrackImage"
  },
  "title" : "currentMaximumTrackImage"
}
-->

# currentMaximumTrackImage

Contains the maximum track image currently being used to render the slider.

```
var currentMaximumTrackImage: UIImage? { get }
```

## Discussion

Sliders can have different track images for different control states. The active control state determines which maximum track image is stored in this property. To get the maximum track image for a different control state, use the [`maximumTrackImage(for:)`](/documentation/UIKit/UISlider/maximumTrackImage(for:)) method.

If no custom track images have been set using the [`setMaximumTrackImage(_:for:)`](/documentation/UIKit/UISlider/setMaximumTrackImage(_:for:)) method, this property contains the value `nil`. In that situation, the slider uses the default maximum track image for drawing.

---

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)