Make entire titlebar draggable

This commit is contained in:
James Magahern
2021-10-21 16:14:42 -07:00
parent 291abfcd6a
commit 9b54d68746
2 changed files with 14 additions and 0 deletions

View File

@@ -62,6 +62,10 @@ class TitlebarView: UIView
private let separatorView = UIView(frame: .zero)
private let securityIndicatorView = SecurityIndicatorView()
override var _sceneDraggingBehaviorOnPan: _UIViewSceneDraggingBehaviorOnPan {
_UIViewSceneDraggingBehaviorOnPan.dragScene
}
convenience init() {
self.init(frame: .zero)
addSubview(backgroundView)