<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "tvOS: 17.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITraitChangeObservable-67e94/unregisterForTraitChanges(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit23UITraitChangeObservableP25unregisterForTraitChangesyySo0bC12Registration_pF"
  },
  "title" : "unregisterForTraitChanges(_:)"
}
-->

# unregisterForTraitChanges(_:)

Tells the system to stop observing previously registered traits.

```
@MainActor func unregisterForTraitChanges(_ registration: any UITraitChangeRegistration)
```

## Parameters

`registration`

A token that identifies the registration, obtained from one of the trait registration method calls.

## Discussion

Use this method if you want the system to stop observing trait changes for a previous registration. UIKit doesn’t require you to unregister for trait changes at the end of the view lifecycle. Unregister only if you need to dynamically change which traits you observe.

---

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)