MenuItemKit provides image and block(closure) support for UIMenuItem.
- Add the
MenuItemKitrepository as a submodule of your application’s repository. - Drag and drop
MenuItemKit.xcodeprojinto your application’s Xcode project or workspace. - On the “General” tab of your application target’s settings, add
MenuItemKit.frameworkto the “Embedded Binaries” section.
If you would prefer to use Carthage or CocoaPods, please pull request.
MenuItemKit is very easy to adopt, it provides only 2 APIs:
typealias MenuItemHandler = (UIMenuItem) -> ()
extension UIMenuItem {
convenience init(title: String, handler: MenuItemHandler)
convenience init(image: UIImage, handler: MenuItemHandler)
}Just init UIMenuItems with above APIs, and set them to menuItems of UIMenuItemController. MenuItemKit will take care of the rest parts, you don't need to add any code related to responder chain in your view or view controller.
MenuItemKit is a Swift project but Objective-C is supported without a doubt.
- Twitter: @_cxa
- Apps available in App Store: http://lazyapps.com
- PayPal: xianan.chen+paypal 📧 gmail.com, buy me a cup of coffee if you find it's useful for you.
MenuItemKit is released under the MIT license. In short, it's royalty-free but you must keep the copyright notice in your code or software distribution.

