Group Group Group Group Group Group Group Group Group

Use of unresolved identifier ‘performSegue’ in Tableviewcell

Hi,

I have table view in main table view. i want go details view when click sub tableview’s cell and put didSelectRowAt function and i prepare “goDetail segue”. However when i wrote that codes;

 func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        _selectedVideo = self._videos[indexPath.row].id
        performSegue(withIdentifier: "goVideoDetails", sender: nil)
    }
    func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        
        if segue.identifier == "goVideoDetails" {
            let destinationVC = segue.destination as! SpeechDetails
            destinationVC._chosenVideo = _selectedVideo
        }
    }

performSegue(withIdentifier: “goVideoDetails”, sender: nil) // Use of unresolved identifier 'performSegue’

I knew reason because perform segue can’t use in table view cell but i dont have any option. i should use that table in main table. Have i got any option for go detail page? I need helps or hits.