From 05460ca2b38e911b6d2de20b847b5d5f72d5f2a8 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Fri, 13 Oct 2023 15:18:02 +1100 Subject: [PATCH] Fixed a bug where the play button wouldn't appear when swiping attachments --- .../Media Viewing & Editing/MediaPageViewController.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Session/Media Viewing & Editing/MediaPageViewController.swift b/Session/Media Viewing & Editing/MediaPageViewController.swift index 21ef01643..483387a1f 100644 --- a/Session/Media Viewing & Editing/MediaPageViewController.swift +++ b/Session/Media Viewing & Editing/MediaPageViewController.swift @@ -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)