<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ImmersiveContentBrightness/custom(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI26ImmersiveContentBrightnessV6customyACSdFZ"
  },
  "title" : "custom(_:)"
}
-->

# custom(_:)

Creates a content brightness with a custom value.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)