---
title: "all(of:)"
framework: photosui
role: symbol
role_heading: Type Method
path: "photosui/phpickerfilter-swift.struct/all(of:)"
---

# all(of:)

Creates a new filter that includes only the filters you specify.

## Declaration

```swift
static func all(of subfilters: [PHPickerFilter]) -> PHPickerFilter
```

## Parameters

- `subfilters`: The array of filters to include.

## Return Value

Return Value A new filter that contains the list of filters you specify.

## See Also

### Creating Filters

- [playbackStyle(_:)](photosui/phpickerfilter-swift.struct/playbackstyle(_:).md)
- [not(_:)](photosui/phpickerfilter-swift.struct/not(_:).md)
