Long press on the window button to open a new tab

This commit is contained in:
James Magahern
2020-07-31 16:36:10 -07:00
parent 5457a05309
commit 030c1db45c
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
//
// UIGestureRecognizer+Actions.swift
// SBrowser
//
// Created by James Magahern on 7/31/20.
//
import UIKit
extension UIGestureRecognizer
{
convenience init(action: UIAction) {
self.init(target: action, action: NSSelectorFromString("_performActionWithSender:"))
objc_setAssociatedObject(self, "associatedUIAction", action, .OBJC_ASSOCIATION_RETAIN)
}
}