GalleryView

public class GalleryView : PageView

GalleryView is used to display a list of images. If the navigation bar is translucent, GalleryView should be put inside a ScrollView.

Author

Adamas

Version

1.6.0

Date

18/08/2019
  • The mode of the images displayed.

    Declaration

    Swift

    public var imageMode: UIView.ContentMode
  • The max zoom level.

    Declaration

    Swift

    public var maxZoomLevel: CGFloat
  • The images presented.

    Declaration

    Swift

    public var images: [UIImage] { get set }
  • The image presented.

    Declaration

    Swift

    public var currentImage: UIImage? { get }
  • Add an image to the view.

    Declaration

    Swift

    public func add(_ image: UIImage)

    Parameters

    image

    The image to be added.

  • Refresh an image to the view.

    Declaration

    Swift

    public func refresh(_ image: UIImage, atIndex index: Int)

    Parameters

    index

    The index of the new image.

    image

    The image. Any object other than UIImage object will be replaced by a default image.

  • Undocumented

    Declaration

    Swift

    public override func scrollViewDidScroll(_ scrollView: UIScrollView)