Skip to content

Commit

Permalink
Fix presentation issues on iOS 13 (zvonicek#354, zvonicek#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvonicek committed Jun 19, 2020
1 parent 0831ce6 commit d5db87e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ImageSlideshow/Classes/Core/ImageSlideshow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,11 @@ open class ImageSlideshow: UIView {
fullscreen.inputs = images
slideshowTransitioningDelegate = ZoomAnimatedTransitioningDelegate(slideshowView: self, slideshowController: fullscreen)
fullscreen.transitioningDelegate = slideshowTransitioningDelegate
if #available(iOS 13.0, *) {
// The modalPresentationStyle is already set in FullScreenSlideshowViewController, but multiple users
// reported that they need the `modalPresentationStyle` explicitly specified here.
fullscreen.modalPresentationStyle = .fullScreen
}
controller.present(fullscreen, animated: true, completion: completion)

return fullscreen
Expand Down

0 comments on commit d5db87e

Please sign in to comment.