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

# activityType

The type of service being provided.

```
var activityType: UIActivity.ActivityType? { get }
```

## Discussion

The default value is `nil`. Subclasses may override this property to return a custom activity type that’s reported to the [`completionWithItemsHandler`](/documentation/UIKit/UIActivityViewController/completionWithItemsHandler-swift.property) completion handler.

---

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)