SidebarRowSize

The standard sizes of sidebar rows.

EnumerationiOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+SidebarRowSize in SwiftUI

Declaration

React
type SidebarRowSize = 'large' | 'medium' | 'small';
Swift
enum SidebarRowSize

Pass a literal, or build one with SwiftUI.SidebarRowSize from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

On macOS, sidebar rows have three different sizes: small, medium, and large. The size is primarily controlled by the current users' "Sidebar Icon Size" in Appearance settings, and applies to all applications.

On all other platforms, the only supported sidebar size is .medium.

This size can be read or written in the environment using EnvironmentValues.sidebarRowSize.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Navigation.