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

# hueRotation(_:)

Applies a hue rotation effect to the view.

## Declaration

```swift
func hueRotation(_ angle: Angle) -> some VisualEffect

```

## Parameters

- `angle`: The hue rotation angle to apply to the colors in the view.

## Return Value

Return Value An effect that shifts all of the colors in the view.

## Discussion

Discussion Use hue rotation effect to shift all of the colors in a view according to the angle you specify.

## See Also

### Adjusting Color

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