PagingMenuController icon indicating copy to clipboard operation
PagingMenuController copied to clipboard

Hope to be able to join the system has the function of the slide of the return

Open ReverseScale opened this issue 7 years ago • 0 comments

I found that by default, cannot use the system at the same time in the open sliding switch the slide of the return, and this function has a lot of user habit, so I try to use this method and I do not know if this is correct:

//
//  PagingViewController.swift
//  PagingMenuController
//
//  Created by Yusuke Kita on 6/3/16.
//  Copyright (c) 2016 kitasuke. All rights reserved.
//
...
    open override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        contentScrollView.panGestureRecognizer.require(toFail: navigationController?.interactivePopGestureRecognizer ?? UIGestureRecognizer())
        navigationController?.interactivePopGestureRecognizer?.require(toFail: navigationController?.interactivePopGestureRecognizer ?? UIGestureRecognizer())
    }
...

ReverseScale avatar Nov 28 '17 06:11 ReverseScale