<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/compositionParameterView(_:shouldDisplayParameterWithKey:attributes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)compositionParameterView:shouldDisplayParameterWithKey:attributes:"
  },
  "title" : "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.

```
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[`YES`](/documentation/ObjectiveC/YES) if the port attributes should be displayed; [`NO`](/documentation/ObjectiveC/NO) otherwise.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)