You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a solution that worked for me:
The idea is to disable animation after QLPreviewController appears and enable it back in QLPreviewController’s viewDidDisappear.
To do that I create CustomQLPreviewController with completion handler, I call the handler in viewDidDisappear of the created class:
class CustomQLPreviewController: QLPreviewController {
var completionHandler: (() -> Void)?
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
completionHandler?()
}
}
Set completion handler after I create an instance of CustomQLPreviewController,
then enable animation back after presenting the custom QLPreviewController:
Describe the bug
When QLPreviewController is dismissed using the swipe gesture, MessageInputBar hides and reappears slowly.
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: