Expanding card
A bar at the foot of the screen that rises into the whole screen and falls back, following a finger or on its own.
Desktop
arkui has no expanding card yet.
Mobile
Asking for the latest capture…
Where
ui/ExpandingCard.kt: ExpandingCard, ExpandingCardState, rememberExpandingCard
How
- ExpandingCard(state, stand, onOpen, collapsed, expanded, traveler):
collapsedis the bar's face,expandedthe screen's with aslotwheretraveler, the picture, lands. - state.open() and state.close() move it on its springs; ExpandingCardState.held(p, density) holds it at p for a screenshot.
Asking for the latest capture…
Where
swift/ArkUI: View.expandingCard(isPresented:bar:expanded:) (iOS 26)
How
- On a TabView: tabView.expandingCard(isPresented: $open) { bar } expanded: { screen }. The bar sits on glass above the tab bar (tabViewBottomAccessory) and zooms into the screen and back (navigationTransition(.zoom)).
- The system does the motion, a swipe down on the screen included;
isPresentedgoing false zooms it back into the bar.
Asking for the latest capture…
Asking for the latest capture…