SHFullscreenPopGestureSwift 1.2.1

SHFullscreenPopGestureSwift 1.2.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by criss_cheng.



  • By
  • ShowHandAce

SHFullscreenPopGestureSwift

FDFullScreenPopGesture Swift 重制版.

感谢

本代码仅出于学习目的,思路与方法出自 FDFullScreenPopGestureFDFullScreenPopGestureSwift .特此声明并表示感谢.

如有问题请批评指正.

使用

  • Swift 4 中 initialze 方法被禁用.需在 application(_:didFinishLaunchingWithOptions:) 方法中调用 SHFullscreenPopGesture.configure() 来启用 Method swizzling.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        // 启用
        SHFullscreenPopGesture.configure()
        
        return true
    }
  • 跳转至有 UIScrollView 的控制器时,需要在 UIScrollView 内部完成返回手势,只需如下设置:
scrollView.sh_scrollViewPopGestureRecognizerEnable = true
  • 其余使用方法与 FDFullScreenPopGesture 一致.

CocoaPods 安装

pod 'SHFullscreenPopGestureSwift'

License

MIT