SkillAgentSearch skills...

JTSSloppySwiping

Drop-in UINavigationControllerDelegate that enables sloppy swiping.

Install / Use

/learn @jaredsinclair/JTSSloppySwiping
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

JTSSloppySwiping

Drop-in UINavigationControllerDelegate that enables sloppy swiping (swiping from anywhere in the content view controller's view to start an interactive pop transition, rather than just from the screen edge). It works whether or not the navigation controller's navigation bar is hidden (unlike the default screen edge gesture).

Requirements

  • iOS/iPadOS 17.0+

Usage

If you want to use the convenience navigation controller subclass:

let navController = JTSSloppyNavigationController(rootViewController: root)

If you need to use some other navigation controller class:

self.sloppySwiping = JTSSloppySwiping(navigationController: yourNavController)

// If you don't need another delegate, then:
yourNavController.delegate = self.sloppySwiping

// Otherwise forward the relevant navigation controller delegate methods
// to your sloppy swiping instance.
View on GitHub
GitHub Stars71
CategoryDevelopment
Updated2y ago
Forks7

Languages

Swift

Security Score

80/100

Audited on Nov 5, 2023

No findings