Contents

toggleSidebar(_:)

Collapses or expands the first sidebar in the split view controller using an animation.

Declaration

@IBAction func toggleSidebar(_ sender: Any?)

Discussion

If the split view controller doesn’t contain a sidebar, calling this method does nothing.

See Also

Managing Sidebars