UIPanGesture not working with tablview section titles?

Viewed 30

I have a tableview that has section titles, and it is on the right side of the screen. However, this then blocks the pan gesture that I have to swipe from the right side to go to another view. Is there a way around this?

Sections:
override func sectionIndexTitles(for tableView: UITableView) -> [String]? {
    return sections.map{$0.letter}
}
    
override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
    return sections[section].letter
}

Pan Gesture:
swipeGesture = UIPanGestureRecognizer(target: self, action:#selector(swiped(_:)))
swipeGesture.delegate = self
tableView.addGestureRecognizer(swipeGesture)

Any help would be appreciated. Thanks!

0 Answers
Related