---
title: HasSuffixComparator
framework: appintents
role: symbol
role_heading: Class
path: appintents/hassuffixcomparator
---

# HasSuffixComparator

An object that determines whether the value of a string property has the specified suffix.

## Declaration

```swift
final class HasSuffixComparator<Property, PropertyType, InputType, ComparatorMappingType> where Property : EntityProperty<PropertyType>, PropertyType : _IntentValue, PropertyType : Sendable, InputType : _IntentValue
```

## Topics

### Creating a comparator

- [init(mappingTransform:)](appintents/hassuffixcomparator/init(mappingtransform:)-4dp26.md)
- [init(mappingTransform:)](appintents/hassuffixcomparator/init(mappingtransform:)-5cmgi.md)
- [init(withResolvers:mappingTransform:)](appintents/hassuffixcomparator/init(withresolvers:mappingtransform:)-5rtmw.md)
- [init(withResolvers:mappingTransform:)](appintents/hassuffixcomparator/init(withresolvers:mappingtransform:)-7tdan.md)

## Relationships

### Inherits From

- [EntityQueryComparator](appintents/entityquerycomparator.md)

## See Also

### String comparisons

- [HasPrefixComparator](appintents/hasprefixcomparator.md)
- [StringComparisonOperator](appintents/stringcomparisonoperator.md)
