<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UniformTypeIdentifiers",
  "identifier" : "/documentation/UniformTypeIdentifiers/UTTypeReference/conforms(to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Uniform Type Identifiers",
      "UniformTypeIdentifiers"
    ],
    "preciseIdentifier" : "c:objc(cs)UTType(im)conformsToType:"
  },
  "title" : "conforms(to:)"
}
-->

# conforms(to:)

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

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

## Parameters

`type`

An [`UTType`](/documentation/UniformTypeIdentifiers/UTType-swift.struct) instance.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the type directly or indirectly conforms to `type`, or if it’s equal to `type`.

## Discussion

---

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)