---
title: wrappedValue
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/environment/wrappedvalue
---

# wrappedValue

The current value of the environment property.

## Declaration

```swift
var wrappedValue: Value { get }
```

## Discussion

Discussion The wrapped value property provides primary access to the value’s data. However, you don’t access wrappedValue directly. Instead, you read the property variable created with the Environment property wrapper: @Environment(\.colorScheme) var colorScheme: ColorScheme

var body: some View {     if colorScheme == .dark {         DarkContent()     } else {         LightContent()     } }
