Instance Property


The object represented by the menu item.


var representedObject: Any? { get set }


By setting a represented object for a menu item, you make an association between the menu item and that object. The represented object functions as a more specific form of tag that allows you to associate any object, not just an arbitrary integer, with the items in a menu.

See Also