SidebarWidth

public struct SidebarWidth : EnvironmentKey

Represents the total width of the sidebar, including any leading and trailing padding.

The SidebarWidth key computes the total width of the sidebar by adding the base width of 288 points to the leading and trailing padding values, defined by the SidebarLeadingPadding and SidebarTrailingPadding keys, respectively.

Note: The default value is 288 + SidebarLeadingPadding.defaultValue + SidebarTrailingPadding.defaultValue.

  • Declaration

    Swift

    public static let defaultValue: CGFloat