---
title: didSelectCancel()
framework: social
role: symbol
role_heading: Instance Method
path: social/slcomposeserviceviewcontroller/didselectcancel()
---

# didSelectCancel()

Sent to the compose view after the cancel animation finishes.

## Declaration

```swift
func didSelectCancel()
```

## Discussion

Discussion By default, this method calls the completeRequestReturningItems: method of the associated extensionContext property, passing the appropriate error value in the items array and a nil expiration.

## See Also

### Responding to Lifecycle Events

- [presentationAnimationDidFinish()](social/slcomposeserviceviewcontroller/presentationanimationdidfinish().md)
- [didSelectPost()](social/slcomposeserviceviewcontroller/didselectpost().md)
