<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetVariantQualifier/predicate(forPresentationHeight:operatorType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetVariantQualifier(cm)predicateForPresentationHeight:operatorType:"
  },
  "title" : "predicate(forPresentationHeight:operatorType:)"
}
-->

# predicate(forPresentationHeight:operatorType:)

Creates a predicate with a height and operator type.

```
class func predicate(forPresentationHeight height: CGFloat, operatorType: NSComparisonPredicate.Operator) -> NSPredicate
```

## Parameters

`height`

The presentation height.

`operatorType`

The predicate’s operator type.

## Return Value

A predicate object that you use to to create an [`AVAssetVariantQualifier`](/documentation/AVFoundation/AVAssetVariantQualifier).

---

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)