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.
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