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.
Version
1.6.0Date
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
imageThe image to be added.
-
Refresh an image to the view.
Declaration
Swift
public func refresh(_ image: UIImage, atIndex index: Int)Parameters
indexThe index of the new image.
imageThe image. Any object other than UIImage object will be replaced by a default image.
-
Undocumented
Declaration
Swift
public override func scrollViewDidScroll(_ scrollView: UIScrollView)
GalleryView Class Reference