---
title: "custom(_:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/immersivecontentbrightness/custom(_:)"
---

# custom(_:)

Creates a content brightness with a custom value.

## Declaration

```swift
static func custom(_ value: Double) -> ImmersiveContentBrightness
```

## Parameters

- `value`: The value of the brightness. Provide a value between 0 and 1. Larger values correspond to a brighter environment.

## See Also

### Getting brightness levels

- [automatic](swiftui/immersivecontentbrightness/automatic.md)
- [dark](swiftui/immersivecontentbrightness/dark.md)
- [dim](swiftui/immersivecontentbrightness/dim.md)
- [bright](swiftui/immersivecontentbrightness/bright.md)
