The activity item object that can be used by an activity view controller.
- iOS 10.0+
- Mac Catalyst 13.0+
activity, an object that conforms to the
UIActivity protocol, when you want to include the CloudKit Sharing action as one of the action items in an instance of
activity in an activity view controller can be useful when your app's user interface does not have space to display a button dedicated to CloudKit Sharing. For instance, say your app already has an action button that lets the user share data with social media sites or other apps via an activity view controller. If you include
activity as one of the activity view controller's action items, the controller includes the action as a user-selectable option, thus eliminating the need for a second button in your app's user interface.