Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
VladK9 committed Feb 27, 2022
1 parent 2f37963 commit 8bf8d7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Binary file modified Assets/UIFloatMenu-Banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions Sources/UIFloatMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class UIFloatMenu {

vc.view.addSubview(menuView)

let pan = UIPanGestureRecognizer(target: self, action: #selector(UIControlViewDrag(_:)))
let pan = UIPanGestureRecognizer(target: self, action: #selector(UIFloatMenuDrag(_:)))
pan.maximumNumberOfTouches = 1
pan.cancelsTouchesInView = true
menuView.addGestureRecognizer(pan)
Expand Down Expand Up @@ -107,9 +107,8 @@ class UIFloatMenu {
initY.removeAll()
}

//MARK: - UIControlViewDrag
// MARK: - Test
@objc static private func UIControlViewDrag(_ sender: UIPanGestureRecognizer) {
//MARK: - UIFloatMenuDrag
@objc static private func UIFloatMenuDrag(_ sender: UIPanGestureRecognizer) {
let appRect = UIApplication.shared.windows[0].bounds
let topPadding = UIFloatMenuHelper.getPadding(.top)
let bottomPadding = UIFloatMenuHelper.getPadding(.bottom)
Expand Down
1 change: 0 additions & 1 deletion Sources/UIFloatMenuView/UIFloatMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import UIKit
import Foundation
import SwiftUI

class UIFloatMenuView: UIView, UITableViewDelegate, UITableViewDataSource {

Expand Down

0 comments on commit 8bf8d7f

Please sign in to comment.