IsSidebarAutoWidth
public struct IsSidebarAutoWidth : EnvironmentKey
Represents whether the sidebar width fills the available space from its parent automatically.
The IsSidebarAutoWidth
key governs the automatic sizing of the sidebar. When set to true
, the sidebar will adjust its width to fill the available space provided by its parent container.
Otherwise, the sidebar will use the predefined width specified by the SidebarWidth
key.
Note: The default value is true
.
-
Declaration
Swift
public static let defaultValue: Bool