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

# brightness(_:)

Brightens this view by the specified amount.

## Declaration

```swift
nonisolated func brightness(_ amount: Double) -> some View

```

## Parameters

- `amount`: A value between 0 (no effect) and 1 (full white brightening) that represents the intensity of the brightness effect.

## Return Value

Return Value A view that brightens this view by the specified amount.

## Discussion

Discussion Use brightness(_:) to brighten the intensity of the colors in a view. The example below shows a series of red squares, with their brightness increasing from 0 (fully red) to 100% (white) in 20% increments. struct Brightness: View {     var body: some View {         HStack {             ForEach(0..<6) {                 Color.red.frame(width: 60, height: 60, alignment: .center)                     .brightness(Double($0) * 0.2)                     .overlay(Text("\(Double($0) * 0.2 * 100, specifier: "%.0f")%"),                              alignment: .bottom)                     .border(Color.gray)             }         }     } }

## See Also

### Transforming colors

- [contrast(_:)](swiftui/view/contrast(_:).md)
- [colorInvert()](swiftui/view/colorinvert().md)
- [colorMultiply(_:)](swiftui/view/colormultiply(_:).md)
- [saturation(_:)](swiftui/view/saturation(_:).md)
- [grayscale(_:)](swiftui/view/grayscale(_:).md)
- [hueRotation(_:)](swiftui/view/huerotation(_:).md)
- [luminanceToAlpha()](swiftui/view/luminancetoalpha().md)
- [materialActiveAppearance(_:)](swiftui/view/materialactiveappearance(_:).md)
- [materialActiveAppearance](swiftui/environmentvalues/materialactiveappearance.md)
- [MaterialActiveAppearance](swiftui/materialactiveappearance.md)
