You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/ui/split-view.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ The underlying controller can operate in *double* or *triple* column styles. Spl
84
84
-`SplitView.SplitStyle.double`
85
85
-`SplitView.SplitStyle.triple`
86
86
87
-
iOS chooses the right `UISplitViewControllerStyle` for you. On iOS 17+ an inspector column can also be shown. citeturn2view0
87
+
iOS chooses the right `UISplitViewControllerStyle` for you. On iOS 17+ an inspector column can also be shown.
88
88
89
89
## Props
90
90
@@ -101,15 +101,15 @@ displayMode:
101
101
|'twoDisplaceSecondary'
102
102
```
103
103
104
-
Maps to [UISplitViewController.preferredDisplayMode]. Determines how the primary/supplementary columns relate to the secondary column (beside vs over vs displaced).
104
+
Maps to [UISplitViewController.preferredDisplayMode](https://developer.apple.com/documentation/uikit/uisplitviewcontroller/preferreddisplaymode). Determines how the primary/supplementary columns relate to the secondary column (beside vs over vs displaced).
Maps to [UISplitViewController.preferredSplitBehavior](https://developer.apple.com/documentation/uikit/uisplitviewcontroller/preferreddisplaymode). Controls how columns behave when the size class changes (for example overlaying instead of resizing). iOS 14 or newer is required.
112
+
Maps to [UISplitViewController.preferredSplitBehavior](https://developer.apple.com/documentation/uikit/uisplitviewcontroller/preferredsplitbehavior). Controls how columns behave when the size class changes (for example overlaying instead of resizing). iOS 14 or newer is required.
113
113
114
114
### preferredPrimaryColumnWidthFraction
115
115
@@ -181,10 +181,11 @@ splitView.hideSecondary()
181
181
182
182
Controls the visibility of the secondary column.
183
183
184
-
### showSupplementary()
184
+
### showSupplementary() / hideSupplementary()
185
185
186
186
```ts
187
187
splitView.showSupplementary()
188
+
splitView.hideSupplementary()
188
189
```
189
190
190
191
Ensures the supplementary column is visible when the display mode allows it. Hiding is typically handled automatically by the display mode.
0 commit comments