I am having a UIAction called "Add to Favourites" in UIMenu and UIContextMenuConfiguration for Cells of a UITableView. I want to change the menu the next time it is shown as "Remove from Favourites". But, I learnt that UIMenu is immutable.
How can I achieve my goal to update the menu dynamically ?
Make sure that returned menu from your builder block includes .displayInline: e.g.