Skip to content

Side menu tab bar overlaps with the presenting vc's tab bar during transitions. #692

@ElrB

Description

@ElrB

I have read the guidelines for contributing and I understand

  • [true ] My issue is happening in the latest version of SideMenu (older versions are no longer maintained).
  • [true ] My issue was not solved in the README.
  • [true ] My issue can not be answered on stackoverflow.com.
  • [true ] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
  • [true ] My issue is reproducible in the demo project.

Describe the bug
Presented menu table view's tab bar over laps with the presenting view controller's tab bar during presentation/dismissal transitions.

To Reproduce
Steps to reproduce the behavior:
import SideMenu

var menu: SideMenuNavigationController? - (global variable)
setupSideMenu() - (called in view did load)

private func setupSideMenu() {
menu = SideMenuNavigationController(rootViewController: PopyaPlusViewController())
SideMenuManager.default.leftMenuNavigationController = menu
}

  • (Method to present menu vc)
    @IBAction func popyaPlusBtnTapped(_ sender: UIButton) {
    guard let menu = menu else { return }
    present(menu, animated: true, completion: nil)
    }

  • (Main methods in menu table vc)
    override func viewDidLoad() {
    super.viewDidLoad()
    tableView.register(UINib(nibName: "SideMenuTableViewCell", bundle: nil), forCellReuseIdentifier: "Cell")
    }

    override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    self.navigationController?.navigationBar.isTranslucent = true
    setupTableView()
    }

    func setupTableView() {
    navigationItem.leftBarButtonItem = UIBarButtonItem(image: UIImage(systemName: "info.circle"), style: .plain, target: self, action: #selector(infoBtnTapped))
    tableView.backgroundColor = .white
    tableView.showsVerticalScrollIndicator = false
    tableView.allowsSelection = false
    self.tabBarController?.tabBar.isTranslucent = true
    }

Expected behavior
I expect the tab bars overlapping behaviour not to happen as it seem to prevent taps on the presenting vc tab bar items not to be recognised (sometimes).

Screenshots
image_123986672-3

image_123986672-2

image_123986672

Additional context
I am using Xcode 13.1, - iPhone XR

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions