SHFullscreenPopGestureSwift 1.2.1

SHFullscreenPopGestureSwift 1.2.1

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2017年11月
SwiftSwift 版本3.0
SPM支持 SPM

criss_cheng 维护。



  • ShowHandAce

SHFullscreenPopGestureSwift

FDFullScreenPopGesture Swift 重制版。

感谢

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

如有问题请批评指正。

使用

  • Swift 4 中 initialize 方法已被弃用。需要在 application(_:didFinishLaunchingWithOptions:) 方法中调用 SHFullscreenPopGesture.configure() 来启用方法交换。
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'

许可证

MIT