Activities have a defined category, and the activity UI may show activities grouped by category.


enum Category : Int



case action

Activities whose primary purpose is to take an action on the selected item. For example, copying an image, or saving it to the camera roll.

case share

Activities whose primary purpose is to share the selected item. For example, sending an image by email.

See Also

Getting the Activity Information

class var activityCategory: UIActivity.Category

Returns the category of the activity, which may be used to group activities in the UI.

var activityType: UIActivity.ActivityType?

An identifier for the type of service being provided.

struct UIActivity.ActivityType

Activity types for which the system has built-in support.

var activityTitle: String?

A user-readable string describing the service.

var activityImage: UIImage?

An image that identifies the service to the user.