SplitViewBuilder
- Kind: Class
- Namespace: SkeleKit
Methods
Behavior
Chooses how visible columns share constrained space.
| Parameter | Summary |
|---|---|
SplitViewBehavior behavior | The preferred adaptive presentation. |
Returns
SplitViewBuilder: The builder instance for chaining calls.
Column
Adds or replaces a page in a split view column.
| Parameter | Summary |
|---|---|
SplitViewColumn column | The column to configure. |
(optional) double? weight | The column's relative share of the available width. Once any expanded column supplies a weight, columns without one use a weight of 1. |
| Type parameter | Summary |
|---|---|
ContentView TView | The page type hosted by the column. |
Returns
SplitViewBuilder: The builder instance for chaining calls.
Compact
Adds or replaces the page UIKit uses when the split view is collapsed.
| Type parameter | Summary |
|---|---|
ContentView TView |
Returns
Display
Chooses the preferred number of visible columns.
| Parameter | Summary |
|---|---|
SplitViewDisplay display | The preferred column display. |
Returns
SplitViewBuilder: The builder instance for chaining calls.
Inspector
Adds or replaces the trailing inspector page on iOS 26 and later.
The inspector is omitted when the app runs on an earlier system version.
| Parameter | Summary |
|---|---|
(optional) double? weight |
| Type parameter | Summary |
|---|---|
ContentView TView |
Returns
NavigationColumn
Chooses which column receives ViewModel-first stack navigation and tab reselection behavior.
The default is
SplitViewColumn.Secondary. Use primary for canvas-style apps whose main content belongs in the primary column.
| Parameter | Summary |
|---|---|
SplitViewColumn column | The column whose navigation stack is considered active. |
Returns
SplitViewBuilder: The builder instance for chaining calls.
Primary
Adds or replaces the primary page.
| Parameter | Summary |
|---|---|
(optional) double? weight |
| Type parameter | Summary |
|---|---|
ContentView TView |
Returns
PrimaryEdge
Chooses the edge that hosts the primary column.
| Parameter | Summary |
|---|---|
SplitViewEdge edge | The primary column edge. |
Returns
SplitViewBuilder: The builder instance for chaining calls.
Secondary
Adds or replaces the secondary or detail page.
| Parameter | Summary |
|---|---|
(optional) double? weight |
| Type parameter | Summary |
|---|---|
ContentView TView |
Returns
Style
Selects the split view's two- or three-column arrangement.
| Parameter | Summary |
|---|---|
SplitViewStyle style | The arrangement to create. |
Returns
SplitViewBuilder: The builder instance for chaining calls.
Supplementary
Adds or replaces the supplementary page of a triple-column split view.
| Parameter | Summary |
|---|---|
(optional) double? weight |
| Type parameter | Summary |
|---|---|
ContentView TView |
Returns