Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Chatto/sources/ChatController/BaseChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ public final class BaseChatViewController: UIViewController {
}

override public func viewWillDisappear(_ animated: Bool) {
self.viewEventsHandlers.forEach {
$0.onBeforeViewWillDisappear()
}

super.viewWillDisappear(animated)

self.keyboardUpdatesHandler.stopTracking()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public protocol ViewPresentationEventsHandling: AnyObject {
func onViewWillAppear()
func onViewDidAppear()

func onBeforeViewWillDisappear()
func onViewWillDisappear()
func onViewDidDisappear()
func onViewDidLayoutSubviews()
Expand Down