Analysis updated 2026-05-18
Show a right click style menu at the touch point on a drawing canvas or editor.
Add a contextual dropdown menu to a map or 3D scene view without placing hidden buttons.
Give document preview screens a long press menu anchored to the exact pressed location.
| nicklockwood/contextmenu | appeight/app8-ios-sdk | locallens-project/lingdongphoto | |
|---|---|---|---|
| Stars | 25 | 25 | 25 |
| Language | Swift | Swift | Swift |
| Setup difficulty | easy | moderate | easy |
| Complexity | 2/5 | 4/5 | 2/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Full dropdown-style menus require iOS 17.4 or later, older versions fall back to a different system menu style.
ContextMenu is a small Swift library for iOS apps that lets a developer show a dropdown style menu at the exact point a user long presses on the screen, rather than tying that menu to a visible button. It is built for content areas like drawing canvases, document previews, editors, maps, and 3D scenes, where you want a right click style menu to appear wherever the user touched. Apple's UIKit already offers two related tools, but neither fits this exact case well on its own. Button menus are easy to set up but need a visible button. The system's context menu interaction can attach to any content and knows where the user pressed, but it presents using a different, heavier style than a normal dropdown menu. ContextMenu works around this gap by creating a temporary, invisible button at the pressed location and using it to trigger the standard dropdown menu, so the result looks and behaves like a normal button menu but can appear anywhere in a view. On newer versions of iOS, specifically iOS 17.4 and later, this invisible button trick gives the full standard dropdown appearance. On slightly older versions, iOS 16 through 17.3, the library automatically falls back to a different system menu style called the edit menu interaction, since the newer technique is not available there. The library supports apps built for iOS 14 and later, and Mac Catalyst 14 and later, though menus themselves only appear starting on iOS 16. Developers install it through Swift Package Manager and attach it to any UIView by providing a small function that returns the menu contents for a given touch location, or returns nothing if no menu should appear there. It is released under the MIT license.
A Swift library that shows a standard dropdown menu at the exact point a user long presses, without needing a button.
Mainly Swift. The stack also includes Swift, UIKit, iOS.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.