dim(intensity:)
An effect that dims the passthrough video a custom amount.
Declaration
static func dim(intensity: Double) -> SurroundingsEffectDiscussion
Use this with the preferredSurroundingsEffect(_:) view modifier when you want to darken the passthrough while displaying a particular view. The value will be clamped between 0 and 1. This effect will only be applied while an immersive space is opened.