<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIActivityViewController/excludedActivityTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIActivityViewController(py)excludedActivityTypes"
  },
  "title" : "excludedActivityTypes"
}
-->

# excludedActivityTypes

The list of services that should not be displayed.

```
var excludedActivityTypes: [UIActivity.ActivityType]? { get set }
```

## Discussion

This property contains an array of strings, each of which corresponds to the value you would find in the [`activityType`](/documentation/UIKit/UIActivity/activityType-swift.property) parameter of a [`UIActivity`](/documentation/UIKit/UIActivity) object. Each string you specify indicates a service that you do not want displayed to the user. You might exclude services that you feel are not suitable for the content you are providing. For example, you might not want to allow the user to print a specific image. If the value of this property is `nil`, no services are excluded.

This value of this property is `nil` by default.

---

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)