<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 15.4.0 -",
    "macOS: 12.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMediaIO",
  "identifier" : "/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/init(minValue:maxValue:validValues:readOnly:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Media I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)CMIOExtensionPropertyAttributes(im)initWithMinValue:maxValue:validValues:readOnly:"
  },
  "title" : "init(minValue:maxValue:validValues:readOnly:)"
}
-->

# init(minValue:maxValue:validValues:readOnly:)

Creates a property attributes object with the specified configuration.

```
init(minValue: ObjectType?, maxValue: ObjectType?, validValues: [ObjectType]?, readOnly: Bool)
```

## Parameters

`minValue`

An optional minimum value for the property.

`maxValue`

An optional maximum value for the property.

`validValues`

An optional array of valid values for the property.

`readOnly`

A Boolean value that indicates whether the property is read-only.

## Discussion

Configure the attributes of a property by optionally specifying:

- A minimum or maximum value to restrict the range of values a property supports.
- An array of valid values to restrict the property to discrete values.

If you don’t specify minimum, maximum, or valid values, the property supports any value.

---

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)