ImageSlideshow icon indicating copy to clipboard operation
ImageSlideshow copied to clipboard

Add optional property for defining a custom fullscreen close button.

Open thisisaaronland opened this issue 4 years ago • 0 comments

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

thisisaaronland avatar Aug 17 '20 19:08 thisisaaronland