Comment updates

This commit is contained in:
Ali
2020-09-09 22:37:40 +01:00
parent d5a7be3800
commit c17cedf494
14 changed files with 122 additions and 77 deletions

View File

@@ -203,6 +203,7 @@ final class ChatTitleView: UIView, NavigationBarTitleView {
self.setNeedsLayout()
}
self.isUserInteractionEnabled = isEnabled
self.button.isUserInteractionEnabled = isEnabled
self.updateStatus()
}
}
@@ -635,6 +636,9 @@ final class ChatTitleView: UIView, NavigationBarTitleView {
}
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
if !self.isUserInteractionEnabled {
return nil
}
if self.button.frame.contains(point) {
return self.button.view
}