1.2 KiB
1.2 KiB
STRUCT
OverlaySplitView
An overlay split view widget.
Properties
sidebar
The sidebar's content.
content
The split view's main content.
trailing
Whether the sidebar is at the trailing position.
visible
Whether the sidebar is visible.
sidebarID
The sidebar content's id.
contentID
The main content's id.
Methods
init(visible:sidebar:content:)
Initialize an overlay split view.
- Parameters:
- visible: Whether the sidebar is visible.
- sidebar: The sidebar content.
- content: The main content.
trailingSidebar(_:)
The position of the sidebar.
- Parameter trailing: Whether the sidebar is at the trailing position.
- Returns: The navigation split view.
container(modifiers:)
Get the container of the overlay split view widget.
- Parameter modifiers: Modify views before being updated.
- Returns: The view storage.
update(_:modifiers:)
Update the view storage of the overlay split view widget.
- Parameters:
- storage: The view storage.
- modifiers: Modify views before being updated.
updatePosition(_:)
Update the sidebar's position in the split view.
- Parameter splitView: The overlay split view.