---
title: customViewPersistentData
framework: coreaudiokit
role: symbol
role_heading: Instance Property
path: coreaudiokit/aucustomviewpersistentdata/customviewpersistentdata
---

# customViewPersistentData

Called by the host application to obtain view state data from a custom Cocoa view.

## Declaration

```swift
unowned(unsafe) var customViewPersistentData: NSDictionary? { get set }
```

## Return Value

Return Value A dictionary containing view state data.

## Discussion

Discussion The host application should call this method before closing the view.
