<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISelectionFeedbackGenerator/selectionChanged()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISelectionFeedbackGenerator(im)selectionChanged"
  },
  "title" : "selectionChanged()"
}
-->

# selectionChanged()

Triggers selection feedback.

```
func selectionChanged()
```

## Discussion

This method tells the generator that the user has changed a selection. In response, the generator may play the appropriate haptics. Don’t use this feedback when the user makes or confirms a selection; use it only when the selection changes.

For information on setting up a feedback generator, see the [`UIFeedbackGenerator`](/documentation/UIKit/UIFeedbackGenerator) class.

## See Also

[`-  prepare`](/documentation/UIKit/UIFeedbackGenerator/prepare())

Prepares the generator to trigger feedback.



---

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)