---
title: "addObserver(_:)"
framework: System Extensions
role: symbol
role_heading: Instance Method
platforms: [macOS 15.1+]
path: "systemextensions/ossystemextensionsworkspace/addobserver(_:)"
---

# addObserver(_:)

## Declaration

```swift
func addObserver(_ observer: any OSSystemExtensionsWorkspaceObserver) throws
```

## Discussion

Discussion Start observing changes to System Extension(s) which are enabled or ready to be enabled.
