Anyone familiar with UIKit? Is the forward swipe in Safari a thing UINavigationController does, or is it custom? I'm failing to find any references to it in docs, and from things like https://stackoverflow.com/a/5891661 I can't tell if they are implementing a custom thing or not.

Wondering how to design API around this for AdwNavigationView but can't find any examples of existing API.

EDIT: Answer: it's custom :(

Swipe back and forward on navigationController

Each UIViewController, starting with rootViewController uses [self.navigationController pushViewController nextView] to push new views. Swipe works fine. How can I implement the same behavior for...

Stack Overflow
@alice I'm just getting started with iOS Dev. I haven't seen it in any other (non browser) apps but I doubt it's Safari only

@jaiden well, it's not Safari-only in any case since it's in WebKit, and so the code is even public[1], but it's incomprehensible.

[1]: https://github.com/WebKit/WebKit/blob/main/Source/WebKit/UIProcess/ios/ViewGestureControllerIOS.mm

WebKit/ViewGestureControllerIOS.mm at main · WebKit/WebKit

Home of the WebKit project, the browser engine used by Safari, Mail, App Store and many other applications on macOS, iOS and Linux. - WebKit/ViewGestureControllerIOS.mm at main · WebKit/WebKit

GitHub
@alice @jaiden reading WebKit reminds me of how bad I am at c++
@jamie @jaiden tbf C++ alone would be a lot better than that
@alice @jaiden True, but it’s still an overcomplicated mess