mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
fix function name conflicts
This commit is contained in:
parent
56d4d8e674
commit
27a4f20395
|
@ -3,11 +3,11 @@
|
|||
extension UIView {
|
||||
|
||||
func makeViewDraggable() {
|
||||
let panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(handlePan))
|
||||
let panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(handlePanForDragging))
|
||||
addGestureRecognizer(panGestureRecognizer)
|
||||
}
|
||||
|
||||
@objc private func handlePan(_ gesture: UIPanGestureRecognizer) {
|
||||
@objc private func handlePanForDragging(_ gesture: UIPanGestureRecognizer) {
|
||||
let location = gesture.location(in: self.superview!)
|
||||
if let draggedView = gesture.view {
|
||||
draggedView.center = location
|
||||
|
|
Loading…
Reference in a new issue