top of page
Search

iOS 13 Context Menu with Collection

The Comprehensive Guide to iOS Context Menus

From nested menus to custom previews, use this guide to become a context menu wizard


Adding a menu to a UICollectionView

If you’ve read along this whole way and think you might know how to do this already, you’re probably right! If not, check out the table view section above - just like UITableViewDelegate, UICollectionViewDelegate has methods for adding menus to your collection without any set up. Once we add a menu to a collection view, it’ll let us press each item to see a menu:




Snip Code Controller



Custom previews 🌄

So far, we’ve relied on the default preview generated from our source view. But it’s often useful to create your own preview - in some cases, to allow the user to preview content (like peek did), or to polish up your user interface (those table view cell previews aren’t very eye-catching!)


Snip Code Controller




 
 
 

Comments


bottom of page