<!--
{
  "availability" : [
    "macOS: 10.14.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotosUI/PHProjectTypeDescriptionDataSource/subtypes(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:objc(pl)PHProjectTypeDescriptionDataSource(im)subtypesForProjectType:"
  },
  "title" : "subtypes(for:)"
}
-->

# subtypes(for:)

Provides the root-level project type descriptions and descriptions of any promised subtypes with [`canProvideSubtypes`](/documentation/PhotosUI/PHProjectTypeDescription/canProvideSubtypes) set to `true`.

```
func subtypes(for projectType: PHProjectType) -> [PHProjectTypeDescription]
```

## Parameters

`projectType`

The project type whose subtypes are being requested. The value is [`undefined`](/documentation/PhotosUI/PHProjectType/undefined) when fetching the root level.

## Return Value

An array of subtype descriptions for the queried project 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)