We currently swizzle some UIKit delegate method implementations (on internal UIKit objects), in order to observe when the edit menu (formerly — callout bar) is presented or dismissed. UIKit just recently added rdar://94043113, which makes it possible to achieve this without having to swizzle. Let's adopt this API method (and also work towards rdar://96239605, while we're at it).
Pull request: https://github.com/WebKit/WebKit/pull/2659
Committed 252742@main (8641efca8a22): <https://commits.webkit.org/252742@main> Reviewed commits have been landed. Closing PR #2659 and removing active labels.
<rdar://problem/97454308>