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

# registerSceneAccessory(_:)

Registers a new scene accessory configuration associated with this view controller.

```
func registerSceneAccessory(_ accessory: UISceneAccessory) -> UISceneAccessoryRegistration
```

## Parameters

`accessory`

A configuration which defines system functionality necessary to present the scene accessory.

## Return Value

A registration object which can be used to monitor changes for the scene accessory or unregister it.

## Discussion

The delegate type that the configuration defines will be called for all lifecycle events associated with the scene accessory.

---

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)