Closed mburdzy closed 3 years ago
Figured it out on my own.
Was able to do it by adding these two functions
private func addSwipe() { Swipe = UISwipeGestureRecognizer(target: self, action: #selector(swipeGesture(swipe:))) Swipe!.delegate = self Swipe!.direction = .left self.view.addGestureRecognizer(Swipe!) }
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}`
Has anyone here been able to add their own gesture recognizers without changing the SwiftyCam code?
I see
AddGestureRecognizers
is set asfileprivate
and so ispreviewLayer
, so I am wonder if there is a simple way to add my own custom swipe gesture recognizer without needing to do a pull request.