<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SharedWithYou",
  "identifier" : "/documentation/SharedWithYouCore/SWAction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Shared with You Core"
    ],
    "preciseIdentifier" : "c:objc(cs)SWAction"
  },
  "title" : "SWAction"
}
-->

# SWAction

An object that represents a collaboration action.

```
class SWAction
```

## Topics

### Accessing action attributes

[`complete`](/documentation/SharedWithYouCore/SWAction/isComplete)

A Boolean value that represents whether an action is complete.

[`uuid`](/documentation/SharedWithYouCore/SWAction/uuid)

The unique identifier of an action.

### Completing an action

[`-  fail`](/documentation/SharedWithYouCore/SWAction/fail())

Reports a failed execution of the action.

[`-  fulfill`](/documentation/SharedWithYouCore/SWAction/fulfill())

Reports a successful execution of the action.

## Relationships

### Conforms To

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

[`NSCopying`](/documentation/Foundation/NSCopying)

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Inherited By

[`SWUpdateCollaborationParticipantsAction`](/documentation/SharedWithYouCore/SWUpdateCollaborationParticipantsAction)

[`SWStartCollaborationAction`](/documentation/SharedWithYouCore/SWStartCollaborationAction)

---

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)