Skip to content
This repository has been archived by the owner on Jun 17, 2018. It is now read-only.

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

Open
ReverseScale opened this issue Nov 28, 2017 · 0 comments

Comments

@ReverseScale
Copy link

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())
    }
...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant