<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/GroupActivitySharingController-4gtfk/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Group Activities",
      "AppKit"
    ],
    "preciseIdentifier" : "s:23_GroupActivities_AppKit0A25ActivitySharingControllerCyACxKc0aB00aE0Rzlufc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Initializes the sharing controller with the specified activity and
type information.

```
@MainActor init<ActivityType>(_ activity: ActivityType) throws where ActivityType : GroupActivity
```

## Parameters

`activity`

The activity object to start.

---

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)