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

# CMIOExtensionPropertyAttributes

An object that describes the attributes of a property.

```
class CMIOExtensionPropertyAttributes<ObjectType> where ObjectType : AnyObject
```

## Overview

Use a property attributes object to describe attributes such as the minimum and maximum values, discrete values, and read-only values.

## Topics

### Creating Property Attributes

[`+ (instancetype) propertyAttributesWithMinValue:(ObjectType) minValue maxValue:(ObjectType) maxValue validValues:(NSArray<id> *) validValues readOnly:(BOOL) readOnly;`](/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/propertyAttributesWithMinValue:maxValue:validValues:readOnly:)

Returns a new property attributes object with the specified configuration.

[`init(minValue: ObjectType?, maxValue: ObjectType?, validValues: [ObjectType]?, readOnly: Bool)`](/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/init(minValue:maxValue:validValues:readOnly:))

Creates a property attributes object with the specified configuration.

### Inspecting Attributes

[`var isReadOnly: Bool`](/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/isReadOnly)

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

[`var minValue: ObjectType?`](/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/minValue)

The minimum value a property supports.

[`var maxValue: ObjectType?`](/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/maxValue)

The maximum value a property supports.

[`var validValues: [ObjectType]?`](/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/validValues)

An array of discrete values that this property supports.

### Specifying a Read-Only Attribute

[`class var readOnlyPropertyAttribute: CMIOExtensionPropertyAttributes<AnyObject>`](/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/readOnlyPropertyAttribute)

A class property for a read-only property attribute.

### Initializers

[`init?(coder: NSCoder)`](/documentation/CoreMediaIO/CMIOExtensionPropertyAttributes/init(coder:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)