---
title: "init(withResolvers:mappingTransform:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/lessthanorequaltocomparator/init(withresolvers:mappingtransform:)"
---

# init(withResolvers:mappingTransform:)

Declares support for Comparable <= comparisons between a property and user-supplied values.

## Declaration

```swift
init<Spec>(@ResolverSpecificationBuilder<PropertyType.UnwrappedType> withResolvers resolvers: @escaping () -> Spec, mappingTransform: @escaping (PropertyType.UnwrappedType) -> ComparatorMappingType) where Spec : ResolverSpecification
```

## Parameters

- `resolvers`: Set of Resolvers to apply when converting user input to the target Value type.
- `mappingTransform`: Closure that transforms the user-supplied value into the ComparatorMappingType output type.

## See Also

### Creating a comparator

- [init(mappingTransform:)](appintents/lessthanorequaltocomparator/init(mappingtransform:).md)
- [init(mappingTransform:)](appintents/lessthanorequaltocomparator/init(mappingtransform:).md)
