---
title: "setPropertyState(_:forProperty:)"
framework: coremediaio
role: symbol
role_heading: Instance Method
path: "coremediaio/cmioextensionstreamproperties/setpropertystate(_:forproperty:)"
---

# setPropertyState(_:forProperty:)

Sets the state of the specified property.

## Declaration

```swift
func setPropertyState(_ propertyState: CMIOExtensionPropertyState<AnyObject>?, forProperty property: CMIOExtensionProperty)
```

## Parameters

- `propertyState`: The new state for the property.
- `property`: The property to update.

## See Also

### Managing Property State

- [propertiesDictionary](coremediaio/cmioextensionstreamproperties/propertiesdictionary.md)
