<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/GreaterThanComparator/init(mappingTransform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents21GreaterThanComparatorC16mappingTransformACyxq_q0_Gq0_13UnwrappedTypeQy_c_tcfc"
  },
  "title" : "init(mappingTransform:)"
}
-->

# init(mappingTransform:)

Declares support for `Comparable` `>` comparisons between a property and user-supplied values.

```
init(mappingTransform: @escaping (PropertyType.UnwrappedType) -> ComparatorMappingType)
```

## Parameters

`mappingTransform`

Closure that transforms the user-supplied value into the `ComparatorMappingType` output type.

---

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)