Stuknij, aby usunąć Xcode

   override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        
        let hello = hellos[indexPath.row]
        if let context = (UIApplication.shared.delegate as? AppDelegate)?.persistentContainer.viewContext {
            context.delete(hello)
            (UIApplication.shared.delegate as? AppDelegate)?.saveContext()
            loadData()
        }
        
    }
Itchy Ibex