FullScreenPopNavigationController
自定义navigationController的全屏滑动返回
Install / Use
/learn @jasnig/FullScreenPopNavigationControllerREADME
FullScreenPopNavigationController
自定义navigationController的全屏滑动返回 swift2.3版
最终效果

requirement: swift3.0+ xcode8.0+
首先展示一下最终的使用方法, 使用还是比较方便
- 第一种, 使用提供的自定义的navigationController
- 如果在storyboard中使用, 子需要将navigationController设置为自定义的即可, 默认拥有全屏滑动返回功能, 如果需要关闭, 在需要的地方设置如下即可
// 设置为true的时候开启全屏滑动返回功能, 设置为false, 关闭
(navigationController as? CustomNavigationController)?.enabledFullScreenPop(isEnabled: false)

- 如果使用代码初始化, 那么直接使用自定义的navigationController初始化即可
// 同样的默认是开启全屏滑动返回功能的
let navi = CustomNavigationController(rootViewController: rootVc)
//如果需要关闭或者重新开启, 在需要的地方使用下面方法
(navigationController as? CustomNavigationController)?.enabledFullScreenPop(isEnabled: false)
- 第二种, 使用提供的navigationController的分类 这种方法, 并没有默认开启, 需要我们自己开启或者关闭全屏滑动返回功能
// 在需要的地方, 获取到navigationController, 然后使用分类方法开启(关闭)全屏返回手势即可
navigationController?.zj_enableFullScreenPop(isEnabled: true)
####如果你在使用中遇到问题: 可以通过简书私信给我
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
