Then create some sort of UIButton, UIBarButtonItem or any view with userInteraction enabled. Create the selector and function however you choose.

// It is NOT required to a use a UIBarButtonItem to display the SidebarView. You may display it however you see fit. This is just an example.
lazy var sidebarButton: UIBarButtonItem = {
let btn = UIBarButtonItem(title: "Side", style: .done, target: self, action: #selector(openSidebarView(_:)))
return btn
}()
// Here, we call the "showSidebarView()" function to display the SidebarView
@objc private func openSidebarView(_ sender: Any) {
sidebarView.showSidebarView()
}

Dismissing the SidebarView

Simply tap the background view

Customizing the SidebarView

The ModularSidebarView relies on a variety of Delegate functions in order to provide a customizable look