SWRevealViewController icon indicating copy to clipboard operation
SWRevealViewController copied to clipboard

How to detect the left view open

Open huangyanan423 opened this issue 7 years ago • 1 comments

when open the left view I want to set UICllectionView.scrollEnabled = NO,but how to detect i Click the open button?

huangyanan423 avatar Dec 26 '17 08:12 huangyanan423

By adopting SWRevealViewControllerDelegate and implement:

    func revealController(_ revealController: SWRevealViewController!, willMoveTo position: FrontViewPosition) {
        if position == .right {
             // scrollEnabled = false
        }
        else if position == .left {
             // scrollEnabled = true
        }
    }

iDevelopper avatar Dec 26 '17 13:12 iDevelopper