SidebarRowSize
The standard sizes of sidebar rows.
Declaration
type SidebarRowSize = 'large' | 'medium' | 'small';enum SidebarRowSizePass a literal, or build one with SwiftUI.SidebarRowSize from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'large'SwiftUI.SidebarRowSize.large'medium'SwiftUI.SidebarRowSize.medium'small'SwiftUI.SidebarRowSize.small
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.
- AdaptableTabBarPlacementA placement for tabs in a tab view using the adaptable sidebar style.
- AutomaticNavigationTransitionA style that automatically chooses the appropriate presentation transition for the current context.
- ContentToolbarPlacementA region of the interface that hosts its own toolbar content.
- CrossFadeNavigationTransitionA navigation transition that cross-fades between the appearing view and the disappearing view.
- DismissSearchActionAn action that can end a search interaction.
- NavigationBarItemTitleDisplayModeA style for displaying the title of a navigation bar.
- NavigationPathA type-erased list of data representing the content of a navigation stack.
- NavigationPathChainNavigationPath with chained calls: SwiftUI.NavigationPath.append(...).
- NavigationPathCodableRepresentationA serializable representation of a navigation path.
- NavigationSplitViewColumnA view that represents a column in a navigation split view.
- NavigationSplitViewVisibilityThe visibility of the leading columns in a navigation split view.
- NavigationTransitionA type that defines the transition to use when navigating to a view.