Fixed a bug where the play button wouldn't appear when swiping attachments
This commit is contained in:
parent
de7d85f4cb
commit
05460ca2b3
|
@ -50,7 +50,9 @@ class MediaPageViewController: UIPageViewController, UIPageViewControllerDataSou
|
|||
|
||||
updateTitle(item: item)
|
||||
updateCaption(item: item)
|
||||
setViewControllers([galleryPage], direction: direction, animated: isAnimated)
|
||||
setViewControllers([galleryPage], direction: direction, animated: isAnimated) { [weak galleryPage] _ in
|
||||
galleryPage?.parentDidAppear() // Trigger any custom appearance animations
|
||||
}
|
||||
updateFooterBarButtonItems()
|
||||
updateMediaRail(item: item)
|
||||
}
|
||||
|
@ -658,6 +660,7 @@ class MediaPageViewController: UIPageViewController, UIPageViewControllerDataSou
|
|||
captionContainerView.completePagerTransition()
|
||||
}
|
||||
|
||||
currentViewController.parentDidAppear() // Trigger any custom appearance animations
|
||||
updateTitle(item: currentItem)
|
||||
updateMediaRail(item: currentItem)
|
||||
previousPage.zoomOut(animated: false)
|
||||
|
|
Loading…
Reference in New Issue