---
title: "compositionParameterView(_:shouldDisplayParameterWithKey:attributes:)"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/compositionparameterview(_:shoulddisplayparameterwithkey:attributes:)"
---

# compositionParameterView(_:shouldDisplayParameterWithKey:attributes:)

Allows you to define which composition parameters are visible in the user interface when the composition parameter view refreshes.

## Declaration

```swift
func compositionParameterView(_ parameterView: QCCompositionParameterView!, shouldDisplayParameterWithKey portKey: String!, attributes portAttributes: [AnyHashable : Any]! = [:]) -> Bool
```

## Parameters

- `parameterView`: The composition parameter view in which the selection changed.
- `portKey`: A key for one of the composition parameters, which is provided to you by the Quartz Composer engine.
- `portAttributes`: A dictionary of the attributes that you want to display in the user interface.

## Return Value

Return Value ReturnYES if the port attributes should be displayed; NO otherwise.
