Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/includes/enriching-events/attachment-upload/apple.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ SentrySDK.configureScope { scope in
SentrySDK.captureMessage(message: "my message", block: { scope in
scope.addAttachment(fileAttachment)
})

// Clear all attachments in the global Scope
SentrySDK.configureScope { scope in
scope.clearAttachments()
}
```

```objc {tabTitle:Objective-C}
Expand All @@ -30,4 +35,8 @@ SentryAttachment *fileAttachment =
[scope addAttachment:fileAttachment];
}];

// Clear all attachments in the global Scope
[SentrySDK configureScope:^(SentryScope *_Nonnull scope) {
[scope clearAttachments];
}];
```