ImageSlideshow
ImageSlideshow copied to clipboard
Add optional property for defining a custom fullscreen close button.
This PR tries to build on https://github.com/zvonicek/ImageSlideshow/pull/385 but rather than defining new presets allows for a consume of the ImageSlideshow
package to define a custom UIButton
to use for ending fullscreen mode.
The button is assigned to the slideshow's fullscreenCloseButton
property which is then assigned to the FullScreenSlideshowViewController's closeButtonCustom
property. For example:
let closeButton = UIButton()
closeButton.setImage(UIImage(systemName: "xmark"), for: UIControl.State())
closeButton.tintColor = .white
slideshow.fullscreenCloseButton = closeButton