A travel discover feed of story cards that expand into full-screen guides and pull back.
A Discover feed for a travel app: a serif headline, destination story cards over drawn scenery, each expanding into a full-screen guide with matched image, title and surface, inner scroll, and pull-to-collapse where radius and scale follow the finger to a haptic commit.
$199 once, every piece included. See how installing works · Sign in
SwiftUI source you own, built on Apple frameworks only.
HeroExpandCard for your own feedsTravel App (template)
How it behaves, what it handles, and the decisions behind it.
HeroExpandCard starts as a tall card with a hero image, an eyebrow and a title. Touch-down scales it to 0.965; tap and it expands into a full-screen detail where the image, title and surface share matchedGeometryEffect ids, the corner radius opens to the screen edge and the body scrolls beneath the header. When the detail is scrolled to its top, pulling down makes the whole surface follow: it shrinks and rounds with the drag progress, a rigid haptic marks the commit point, and releasing past it collapses back into the card.
predictedEndTranslation projects past 1.4x the commit distance.onLongPressGesture for onPressingChanged with a 12pt maximum distance, and a simultaneous tap for the open.detail: the trip's facts as blocks, a numbered route and a plan action, all scrolling inside the expanded surface.HeroExpandExample at the end of HeroExpandCard.swift is the Discover screen from the preview.Pieces that work well next to this one.