---
title: "conforms(to:)"
framework: uniformtypeidentifiers
role: symbol
role_heading: Instance Method
path: "uniformtypeidentifiers/uttypereference/conforms(to:)"
---

# conforms(to:)

Returns a Boolean value that indicates whether a type conforms to the type.

## Declaration

```swift
func conforms(to type: UTType) -> Bool
```

## Parameters

- `type`: An doc://com.apple.uniformtypeidentifiers/documentation/UniformTypeIdentifiers/UTType-swift.struct instance.

## Return Value

Return Value true if the type directly or indirectly conforms to type, or if it’s equal to type.

## See Also

### Checking a type’s relationship to another type

- [supertypes](uniformtypeidentifiers/uttype-swift.struct/supertypes.md)
- [isSubtype(of:)](uniformtypeidentifiers/uttypereference/issubtype(of:).md)
- [isSupertype(of:)](uniformtypeidentifiers/uttypereference/issupertype(of:).md)
