---
title: "navigationSplitViewColumnWidth(min:ideal:max:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/navigationsplitviewcolumnwidth(min:ideal:max:)"
---

# navigationSplitViewColumnWidth(min:ideal:max:)

Sets a flexible, preferred width for the column containing this view.

## Declaration

```swift
nonisolated func navigationSplitViewColumnWidth(min: CGFloat? = nil, ideal: CGFloat, max: CGFloat? = nil) -> some View

```

## Discussion

Discussion Apply this modifier to the content of a column in a NavigationSplitView to specify a preferred flexible width for the column. Use navigationSplitViewColumnWidth(_:) if you need to specify a fixed width. The following example shows a three-column navigation split view where the first column has a preferred width of 150 points, and the second column has a flexible, preferred width between 150 and 400 points: NavigationSplitView {     MySidebar()         .navigationSplitViewColumnWidth(150) } contents: {     MyContents()         .navigationSplitViewColumnWidth(             min: 150, ideal: 200, max: 400) } detail: {     MyDetail() } Only some platforms enable resizing columns. If you specify a width that the current presentation environment doesn’t support, SwiftUI may use a different width for your column.

## See Also

### Presenting views in columns

- [Bringing robust navigation structure to your SwiftUI app](swiftui/bringing-robust-navigation-structure-to-your-swiftui-app.md)
- [Migrating to new navigation types](swiftui/migrating-to-new-navigation-types.md)
- [NavigationSplitView](swiftui/navigationsplitview.md)
- [navigationSplitViewStyle(_:)](swiftui/view/navigationsplitviewstyle(_:).md)
- [navigationSplitViewColumnWidth(_:)](swiftui/view/navigationsplitviewcolumnwidth(_:).md)
- [NavigationSplitViewVisibility](swiftui/navigationsplitviewvisibility.md)
- [NavigationLink](swiftui/navigationlink.md)
