Custom Swift menu component for OS X app
Should implement the functionality of NSMenu with the following additions:
- Customizable background color including top and bottom insets
- Adjustable drop shadow behind menu
- Customizable corner radius
The menu should support adding NSMenuItems, including those with custom views.
The use cases for the menu are primarily:
- A right click menu
- A drop down menu shown when a button is clicked
The menu should hide when the user clicks elsewhere on the screen.
In summary: a custom version of the attached OS X menu screenshot. Actual design to be provided.