<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Distributed/DistributedActor/actorSystem-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Distributed"
    ],
    "preciseIdentifier" : "s:11Distributed0A5ActorP11actorSystem0bD0Qzvp"
  },
  "title" : "actorSystem"
}
-->

# actorSystem

The [`DistributedActorSystem`](/documentation/Distributed/DistributedActorSystem) that is managing this distributed actor.

```
nonisolated var actorSystem: Self.ActorSystem { get }
```

## Discussion

It is immutable and equal to the system assigned during the distributed actor’s local initializer
(or to the system passed to the [`resolve(id:using:)`](/documentation/Distributed/DistributedActor/resolve(id:using:)) static function).

## Synthesized property

In concrete distributed actor declarations, a witness for this protocol requirement is synthesized by the compiler.

It is required to assign an initial value to the `actorSystem` property inside a distributed actor’s designated initializer.
Semantically, it can be treated as a `let` declaration, that must be assigned in order to fully-initialize the instance.

If a distributed actor declares no initializer, its default initializer will take the shape of `init(actorSystem:)`,
and initialize this property using the passed [`DistributedActorSystem`](/documentation/Distributed/DistributedActorSystem). If any user-defined initializer exists,
the default initializer is not synthesized, and all the user-defined initializers must take care to initialize this property.

---

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)