---
title: "registerSceneAccessory(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiviewcontroller/registersceneaccessory(_:)"
---

# registerSceneAccessory(_:)

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

## Declaration

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

## Parameters

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

## Return Value

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

## Discussion

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