<!--
{
  "availability" : [
    "tvOS: 10.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameSessionSharingViewController/init(session:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKGameSessionSharingViewController(im)initWithSession:"
  },
  "title" : "init(session:)"
}
-->

# init(session:)

Creates a new sharing view controller for a specified session.

```
init(session: GKGameSession)
```

---

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)