OverlaySwipeNavigationController is a helpfull UIKit framework, which helps you to embed Full Screen Swipe Back Gesture animation, also helps to hide top and back bars statically, creating an overlay effect of child view controller, as in Telegram, for example
Swift Package Manager
Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
Xcode 11+ is required to build SnapKit using Swift Package Manager.
To integrate SnapKit into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift:
dependencies: [ .package(url: "https://github.com/Hadevs/OverlaySwipeNavigationController.git") ]
Subclass your viewControllers inside your Navigation Controller as
class ViewController1: ChildFullSwipeViewController
class ViewController2: ChildFullSwipeViewController
- Subclass your navigation controller as
let nc = FullSwipeNavigationController(rootViewController: vc)
- Push child screen
push(viewController: vc, isNeedToHideBars: true)