FreeComponents
Order Customization View
Animated drink customization demo with flavor selection, cup sizing, matchedGeometryEffect, and quantity control
Free
Free with a ShipSwift account.
Copies a short instruction with your private download link. Paste it into your agent: it downloads the whole skill (the source code, the setup steps and the mistakes we already made for you) and builds the screen.
Works with
+70
What it does
Animated drink customization demo page showcasing SwiftUI animation capabilities: flavor selection, cup size switching, gradient background animation, matchedGeometryEffect selector, and cup scale/offset animation. Can be used as a reference template for product customization pages. Includes sub-components: SWCupView, SWOrderSelector, SWQuantityControl, and SWOrderButton.
Note: This component references image resources (.matcha,.chocolate,.latte) from the asset catalog. Replace these with your own image resources.
What you get
- ✓253 lines of source code, ready to paste
- ✓Source Code
- ✓Usage
componentdisplayorderanimationmatchedGeometryEffectSwiftUI
Usage
// Present the view directly (includes built-in gradient background)
SWOrderView()
// Reuse sub-components independently:
// Capsule-shaped selector with matchedGeometryEffect
SWOrderSelector(items: ["S", "M", "L"], sel: $size, ns: sizeNS, label: "Size")
// +/- stepper with numeric text transition
SWQuantityControl(qty: $qty)More in Components
- Add SheetFreeBottom sheet with text input field, Cancel and Continue buttons, presented as a medium detent sheet
- Alert Toast NotificationFreeGlobal toast-style alert overlay with preset styles (info, success, warning, error) and auto-dismiss
- Bullet Point TextFreeText label with a colored capsule bullet point indicator that accepts any View content via @ViewBuilder
- Cached ImageFreeAsyncImage drop-in with a memory + disk cache, so re-created views show remote images on the first frame instead of flashing the placeholder
- Floating LabelsFreeAnimated floating capsule labels that fade in and out at specified positions around an image
- Gradient DividerFreeHorizontal divider with a center-fade gradient effect (clear to color to clear)