Latest 1.2.1
Homepage https://github.com/ShowHandAce/SHFullscreenPopGestureSwift
License MIT
Platforms ios 8.0, requires ARC
Authors

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
  • 如果项目使用 Swift4 以下的版本,依然可以使用 本库1.1版本实现无代码设置的全屏返回.请在 Podfile.lock确认本库真实版本,并在 pod 工程 SHFullscreenPopGestureSwift target 的 build setting 中确认本库使用低于 Swift4 的版本编译.
  • 如果项目使用 Swift4 请使用最新版本,并在 AppDelegate 中设置.(最新版本为1.2.1 不要纠结版本号为什么这么乱…)

CocoaPods 安装

pod 'SHFullscreenPopGestureSwift'

License

MIT

Latest podspec

{
    "name": "SHFullscreenPopGestureSwift",
    "version": "1.2.1",
    "summary": "FDFullScreenPopGesture Swift u91cdu5236u7248.",
    "description": "FDFullScreenPopGesture Swift u91cdu5236u7248.Just pod in 1 file and call 1 function.",
    "homepage": "https://github.com/ShowHandAce/SHFullscreenPopGestureSwift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ShowHandAce": "https://github.com/ShowHandAce"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ShowHandAce/SHFullscreenPopGestureSwift.git",
        "tag": "1.2.1"
    },
    "source_files": "SHFullscreenPopGestureSwift/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This