Fixes Error Log context menu appearing while scrolling table view

This commit is contained in:
Riley Testut
2022-10-26 17:25:21 -05:00
committed by Magesh K
parent 9f04b3a9f1
commit 531f8b5a0d

View File

@@ -27,7 +27,6 @@ final class ErrorLogViewController: UITableViewController
self.updateButtonInteractivity()
}
}
private lazy var timeFormatter: DateFormatter = {
let dateFormatter = DateFormatter()
dateFormatter.dateStyle = .none
@@ -355,18 +354,15 @@ extension ErrorLogViewController
{
self.isScrolling = true
}
override func scrollViewDidEndDecelerating(_ scrollView: UIScrollView)
{
self.isScrolling = false
}
override func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool)
{
guard !decelerate else { return }
self.isScrolling = false
}
private func updateButtonInteractivity()
{
guard #available(iOS 14, *) else { return }