34. Building Context Menus in SwiftUI
A context menu in SwiftUI is a menu of options that appears when the user performs a long press over a view on which a menu has been configured. Each menu item will typically contain a Button view configured to perform an action when selected, together with a Text view and an optional Image view.
This chapter will work through the creation of an example app that makes use of a context menu to perform color changes on a view.