---
title: forSharing()
framework: avfoundation
role: symbol
role_heading: Type Method
path: avfoundation/avmetadataitemfilter/forsharing()
---

# forSharing()

Returns a metadata filter to use for sharing assets.

## Declaration

```swift
class func forSharing() -> AVMetadataItemFilter
```

## Return Value

Return Value An instance of an AVMetadataItemFilter.

## Discussion

Discussion Removes user-identifying metadata items, such as location information, and leaves only metadata related to commerce or playback itself. For example, playback, copyright, and commercial-related metadata, such as a purchaser’s ID as set by a vendor of digital media, along with metadata either derivable from the media itself or necessary for its proper behavior are all left intact.
