media/DSImageGallery
DSImageGallery
mediaHorizontal scrolling image gallery with page indicators.
iOSmacOS
Purpose
Use to display multiple images in a compact, swipeable carousel. Perfect for product photos or media galleries.
Interactive Reference
Live showroom
Need the full visual surface?
Screenshots do not scale well across every component, state, and variant. For the real interactive reference, import the package and launch DSShowcaseRoot().
Best for exploring:
variants, states, categories, and real app examples in one place.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| imagesreq | [String] | โ | Array of image names or URLs |
| height | CGFloat | 200 | Gallery height |
| cornerRadius | CGFloat | DSRadius.large | Image corner radius |
Examples
Product gallery
Show multiple product images.
swift
DSImageGallery(
images: product.imageNames,
height: 300,
cornerRadius: DSRadius.large
)Usage Guidelines
- Use for 2-10 images; more than 10 consider grid view
- Maintain consistent image aspect ratios
- Page indicators show current position