Skip to content

Commit 8bf8d7f

Browse files
committed
Updated
1 parent 2f37963 commit 8bf8d7f

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Assets/UIFloatMenu-Banner.png

-447 Bytes
Loading

Sources/UIFloatMenu.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class UIFloatMenu {
5050

5151
vc.view.addSubview(menuView)
5252

53-
let pan = UIPanGestureRecognizer(target: self, action: #selector(UIControlViewDrag(_:)))
53+
let pan = UIPanGestureRecognizer(target: self, action: #selector(UIFloatMenuDrag(_:)))
5454
pan.maximumNumberOfTouches = 1
5555
pan.cancelsTouchesInView = true
5656
menuView.addGestureRecognizer(pan)
@@ -107,9 +107,8 @@ class UIFloatMenu {
107107
initY.removeAll()
108108
}
109109

110-
//MARK: - UIControlViewDrag
111-
// MARK: - Test
112-
@objc static private func UIControlViewDrag(_ sender: UIPanGestureRecognizer) {
110+
//MARK: - UIFloatMenuDrag
111+
@objc static private func UIFloatMenuDrag(_ sender: UIPanGestureRecognizer) {
113112
let appRect = UIApplication.shared.windows[0].bounds
114113
let topPadding = UIFloatMenuHelper.getPadding(.top)
115114
let bottomPadding = UIFloatMenuHelper.getPadding(.bottom)

Sources/UIFloatMenuView/UIFloatMenuView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import UIKit
77
import Foundation
8-
import SwiftUI
98

109
class UIFloatMenuView: UIView, UITableViewDelegate, UITableViewDataSource {
1110

0 commit comments

Comments
 (0)