media/DSImageGallery

DSImageGallery

media
since 1.2.0

Horizontal 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

PropTypeDefaultDescription
imagesreq[String]โ€”Array of image names or URLs
heightCGFloat200Gallery height
cornerRadiusCGFloatDSRadius.largeImage 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

Related Components