---
title: "compositionPickerView(_:didSelect:)"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/compositionpickerview(_:didselect:)"
---

# compositionPickerView(_:didSelect:)

Performs custom tasks when the selected composition in the composition picker view changes.

## Declaration

```swift
func compositionPickerView(_ pickerView: QCCompositionPickerView!, didSelect composition: QCComposition!)
```

## Parameters

- `pickerView`: The composition picker view in which the selection changed.
- `composition`: The selected composition or nil if the previously selected composition is no longer selected.

## Discussion

Discussion Quartz Composer invokes this method when the selected composition in the composition picker view changes. Implement this method if you want to perform custom tasks at that time.
