<!--
{
  "availability" : [
    "iOS: 2.0.0 - 15.0.0",
    "iPadOS: 2.0.0 - 15.0.0",
    "macCatalyst: 13.1.0 - 15.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/showsTouchWhenHighlighted",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIButton(py)showsTouchWhenHighlighted"
  },
  "title" : "showsTouchWhenHighlighted"
}
-->

# showsTouchWhenHighlighted

A Boolean value that determines whether tapping the button causes it to glow.

```
var showsTouchWhenHighlighted: Bool { get set }
```

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true>, the button glows when tapped; otherwise, it does not. The image and button behavior is not changed by the glow. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)