---
title: "grayscale(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/visualeffect/grayscale(_:)"
---

# grayscale(_:)

Adds a grayscale effect to the view.

## Declaration

```swift
func grayscale(_ amount: Double) -> some VisualEffect

```

## Parameters

- `amount`: The intensity of grayscale to apply from 0.0 to less than 1.0. Values closer to 0.0 are more colorful, and values closer to 1.0 are less colorful.

## Return Value

Return Value An effect that reduces the intensity of colors in the view.

## Discussion

Discussion A grayscale effect reduces the intensity of colors in the view.

## See Also

### Adjusting Color

- [brightness(_:)](swiftui/visualeffect/brightness(_:).md)
- [colorEffect(_:isEnabled:)](swiftui/visualeffect/coloreffect(_:isenabled:).md)
- [contrast(_:)](swiftui/visualeffect/contrast(_:).md)
- [hueRotation(_:)](swiftui/visualeffect/huerotation(_:).md)
- [saturation(_:)](swiftui/visualeffect/saturation(_:).md)
- [opacity(_:)](swiftui/visualeffect/opacity(_:).md)
