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

# not(_:)

Creates a new filter that excludes the filter you specify.

## Declaration

```swift
static func not(_ filter: PHPickerFilter) -> PHPickerFilter
```

## Parameters

- `filter`: The filter to exclude from the new filter.

## Return Value

Return Value A new filter that excludes the filter you specify.

## See Also

### Creating Filters

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