---
title: "subtypes(for:)"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phprojecttypedescriptiondatasource/subtypes(for:)"
---

# subtypes(for:)

Provides the root-level project type descriptions and descriptions of any promised subtypes with canProvideSubtypes set to true.

## Declaration

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

## Parameters

- `projectType`: The project type whose subtypes are being requested. The value is doc://com.apple.photokit/documentation/PhotosUI/PHProjectType/undefined when fetching the root level.

## Return Value

Return Value An array of subtype descriptions for the queried project type.

## See Also

### Providing Required Fields

- [typeDescription(for:)](photosui/phprojecttypedescriptiondatasource/typedescription(for:).md)
- [footerText(forSubtypesOf:)](photosui/phprojecttypedescriptiondatasource/footertext(forsubtypesof:).md)
