Skip to content

Commit

Permalink
remove willStartFullscreenTransition
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-dev committed Jan 19, 2021
1 parent aeb8ba7 commit bcffdb2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions MediaSlideshow/Source/AV/AVPlayerSlide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ public class AVPlayerSlide: AVPlayerView, MediaSlideshowSlide {
return transitionView
}

public func willStartFullscreenTransition(_ type: FullscreenTransitionType) {
source.player.pause()
}

public func didAppear() {
switch onAppear {
case .play(let muted):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ class ZoomInAnimator: ZoomAnimator, UIViewControllerAnimatedTransitioning {
}

toViewController.view.frame = transitionContext.finalFrame(for: toViewController)
toViewController.slideshow.currentSlide?.willStartFullscreenTransition(.zoomIn)

let transitionBackgroundView = UIView(frame: containerView.frame)
transitionBackgroundView.backgroundColor = toViewController.backgroundColor
Expand Down Expand Up @@ -295,7 +294,6 @@ class ZoomOutAnimator: ZoomAnimator, UIViewControllerAnimatedTransitioning {
guard let fromViewController = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.from) as? FullScreenSlideshowViewController else {
fatalError("Transition not used with FullScreenSlideshowViewController")
}
fromViewController.slideshow.currentSlide?.willStartFullscreenTransition(.zoomOut)

let containerView = transitionContext.containerView
var transitionImageView: UIImageView?
Expand Down
2 changes: 0 additions & 2 deletions MediaSlideshow/Source/Images/ImageSlide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ open class ImageSlide: UIScrollView, UIScrollViewDelegate, ZoomableMediaSlidesho
zoomOut()
}

public func willStartFullscreenTransition(_ type: FullscreenTransitionType) {}

// MARK: - Image zoom & size

func tapZoom() {
Expand Down
2 changes: 0 additions & 2 deletions MediaSlideshow/Source/MediaSlideshowSlide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ public protocol MediaSlideshowSlide: UIView {
func didAppear()

func didDisappear()

func willStartFullscreenTransition(_ type: FullscreenTransitionType)
}

0 comments on commit bcffdb2

Please sign in to comment.