mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix missing captionView when navigating via RailView
This commit is contained in:
parent
c5d568de58
commit
3c0982e0f9
1 changed files with 7 additions and 0 deletions
|
@ -224,6 +224,9 @@ public class AttachmentApprovalViewController: UIPageViewController, UIPageViewC
|
|||
|
||||
self.setCurrentItem(firstItem, direction: .forward, animated: false)
|
||||
|
||||
// layout immediately to avoid animating the layout process during the transition
|
||||
self.currentPageViewController.view.layoutIfNeeded()
|
||||
|
||||
// As a refresher, the _Information Architecture_ here is:
|
||||
//
|
||||
// You are approving an "Album", which has multiple "Attachments"
|
||||
|
@ -533,6 +536,10 @@ public class AttachmentApprovalViewController: UIPageViewController, UIPageViewC
|
|||
return
|
||||
}
|
||||
|
||||
page.loadViewIfNeeded()
|
||||
let keyboardScenario: KeyboardScenario = bottomToolView.isEditingMediaMessage ? .editingMessage : .hidden
|
||||
page.updateCaptionViewBottomInset(keyboardScenario: keyboardScenario)
|
||||
|
||||
self.setViewControllers([page], direction: direction, animated: isAnimated, completion: nil)
|
||||
updateMediaRail()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue