<!--
{
  "availability" : [
    "iOS: 7.0.0 - 27.0.0",
    "iPadOS: 7.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.10.0 - 27.0.0",
    "tvOS: 10.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MultipeerConnectivity",
  "identifier" : "/documentation/MultipeerConnectivity/MCSessionState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Multipeer Connectivity"
    ],
    "preciseIdentifier" : "c:@E@MCSessionState"
  },
  "title" : "MCSessionState"
}
-->

# MCSessionState

Indicates the current state of a given peer within a session.

```
enum MCSessionState
```

## Topics

### Constants

[`MCSessionStateNotConnected`](/documentation/MultipeerConnectivity/MCSessionState/notConnected)

The peer is not (or is no longer) in this session.

[`MCSessionStateConnecting`](/documentation/MultipeerConnectivity/MCSessionState/connecting)

A connection to the peer is currently being established.

[`MCSessionStateConnected`](/documentation/MultipeerConnectivity/MCSessionState/connected)

The peer is connected to this session.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)