https://github.com/lakr233/chidorimenu
Drop in replacement for _presentMenuAtLocation:
https://github.com/lakr233/chidorimenu
Last synced: about 2 months ago
JSON representation
Drop in replacement for _presentMenuAtLocation:
- Host: GitHub
- URL: https://github.com/lakr233/chidorimenu
- Owner: Lakr233
- License: mit
- Created: 2023-09-16T06:00:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-18T16:40:40.000Z (5 months ago)
- Last Synced: 2025-01-18T17:37:13.117Z (5 months ago)
- Language: Swift
- Size: 13.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChidoriMenu š¦ā”ļø
A seamless drop-in replacement for UIMenu & UIAction, featuring nested menu support and dark mode compatibility.
The inspiration behind this project stems from Apple's lack of a unified interface across iOS and Mac Catalyst apps, as well as the absence of a built-in menu presentation method. To address these gapsāand to enable greater customizationāwe developed ChidoriMenu.
This project draws heavily on code from [ChidoriMenu](https://github.com/christianselig/ChidoriMenu), and as such, we adhere to the same license.
## Preview

## Features
- [x] Added support for UIMenu & UIAction
- [x] Added drop-in replacement for `_presentMenuAtLocation:` (not recommended for general use)
- [x] Added support for nested menus in child elements
- [x] Added support for the `.displayInline` menu option
- [x] Added compatibility with dark mode
- [x] Fixed scrolling issues during selection
- [x] Fixed multiple actions triggering simultaneously
- [ ] Added support for UIDeferredMenuElement (Contributions Welcome!)## Requirements
- iOS 15.0 or later
- macCatalyst 15.0 or later## Usage
Getting started is straightforward. While the interface differs slightly from Apple's menu implementation, the core principles remain the same. Mac Catalyst is fully supported, though it does not bridge to AppKit menusāit functions identically to iOS.
```swift
UIButton.presentMenu()
UIView.present(menu: menu)
```For detailed examples, check out the example project included in the repository.
## License
ChidoriMenu is available under the MIT license. See the LICENSE file for more info.
---
2025.1.20 - Made with ā¤ļø by Lakr233