---
title: levelOfDetail
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/environmentvalues/levelofdetail
---

# levelOfDetail

The level of detail the view is recommended to have.

## Declaration

```swift
var levelOfDetail: LevelOfDetail { get set }
```

## Discussion

Discussion Read from the environment with @Environment(\.levelOfDetail) var levelOfDetail To customize your view based on recommended level of detail, read the environment value using the .levelOfDetail key and apply that to change your view. var body: some View {      switch levelOfDetail {      case .default:          VStack {             NewsTitleView()             NewsBodyView()          }      case .simplified:          NewsImageOverview()      } } note: The levelOfDetail can be determined by different factors depending on the platforms.
