Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ open class FullScreenSlideshowViewController: UIViewController {
/// Index of initial image
open var initialPage: Int = 0

/// Number of images to preload
open var preload: ImagePreload?

/// Input sources to
open var inputs: [InputSource]?

Expand Down Expand Up @@ -65,6 +68,10 @@ open class FullScreenSlideshowViewController: UIViewController {
view.backgroundColor = backgroundColor
slideshow.backgroundColor = backgroundColor

if let preload = preload {
slideshow.preload = preload
}

if let inputs = inputs {
slideshow.setImageInputs(inputs)
}
Expand Down
1 change: 1 addition & 0 deletions ImageSlideshow/Classes/Core/ImageSlideshow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ open class ImageSlideshow: UIView {
}

fullscreen.initialPage = currentPage
fullscreen.preload = preload
fullscreen.inputs = images
slideshowTransitioningDelegate = ZoomAnimatedTransitioningDelegate(slideshowView: self, slideshowController: fullscreen)
fullscreen.transitioningDelegate = slideshowTransitioningDelegate
Expand Down