A unique identifier for this gallery item. This
id is passed to the parent .gallery() detail callback when the item is tapped.Support
Usage
Registering gallery items
Apply.galleryItem() to each child that should be tappable within a .gallery() parent.
Notes
- This modifier must be used inside a component that has the
.gallery()modifier applied. Without a parent gallery, it has no effect. - Each
idshould be unique within the gallery so the detail callback can identify which item was selected.
See Also
- gallery — wraps children in a full-screen photo gallery