Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Disabling opening the side menu #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Source/SideMenuController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,10 @@ open class SideMenuController: UIViewController, UIGestureRecognizerDelegate {
return screenSize.width < screenSize.height
}

open var sidePanelDisabled = false

var canDisplaySideController: Bool {
guard !sidePanelDisabled else { return false }
return sideViewController != nil
}

Expand Down