admin管理员组

文章数量:1300164

I want to add a menu item/action to the default contextual menu items that are shown when we tap on a selected item using the PenciKit lasso.

I tried overriding the touchesBegan to try to identify the selectionView and maybe override the menu there, but it does not seem to be the right way to do that.

class Canvas: PKCanvasView {
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        super.touchesBegan(touches, with: event)
        touches.forEach { touch in
            print("touch location \(touch.location(in: self))")
    
        }
    }
}

ScreenGrab of Lasso Contextual Menu

本文标签: