---
title: shared
framework: swift
role: symbol
role_heading: Type Property
path: swift/mainactor/shared
---

# shared

The shared actor instance that will be used to provide mutually-exclusive access to declarations annotated with the given global actor type.

## Declaration

```swift
static let shared: MainActor
```

## Discussion

Discussion The value of this property must always evaluate to the same actor instance.
