<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudioKit",
  "identifier" : "/documentation/CoreAudioKit/AUCustomViewPersistentData/customViewPersistentData",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CoreAudioKit"
    ],
    "preciseIdentifier" : "c:objc(pl)AUCustomViewPersistentData(py)customViewPersistentData"
  },
  "title" : "customViewPersistentData"
}
-->

# customViewPersistentData

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

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

## Return Value

A dictionary containing view state data.

## Discussion

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

---

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)