<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/QCCompositionPickerView/setDefaultValue(_:forInputKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)QCCompositionPickerView(im)setDefaultValue:forInputKey:"
  },
  "title" : "setDefaultValue(_:forInputKey:)"
}
-->

# setDefaultValue(_:forInputKey:)

Sets the default value to use for a composition input parameter.

```
func setDefaultValue(_ value: Any!, forInputKey key: String!)
```

## Parameters

`value`

This default value overrides any initial value existing for composition input parameters with this key. Pass `nil` to clear the default value.

`key`

The input parameter key whose default value you want to set.

---

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)