Fixed a bug where the play button wouldn't appear when swiping attachments

This commit is contained in:
Morgan Pretty 2023-10-13 15:18:02 +11:00
parent de7d85f4cb
commit 05460ca2b3
1 changed files with 4 additions and 1 deletions

View File

@ -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)