<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/EnvironmentValues/sidebarRowSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17EnvironmentValuesVAAE14sidebarRowSizeAA07SidebarfG0Ovp"
  },
  "title" : "sidebarRowSize"
}
-->

# sidebarRowSize

The current size of sidebar rows.

```
var sidebarRowSize: SidebarRowSize { get set }
```

## Discussion

On macOS, reflects the value of the “Sidebar icon size” in
System Settings’ Appearance settings.

This can be used to update the content shown in the sidebar in
response to this size. And it can be overridden to force a sidebar to a
particularly size, regardless of the user preference.

On other platforms, the value is always `.medium` and setting a
different value has no effect.

SwiftUI views like `Label` automatically adapt to the sidebar row size.

---

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)