How do i reload data in my tableview : Ive seen some answers on Stack about this question but a lot of them are from 5 years ago and using an older version of swift. I would like to reload the data in the table every time the user hits save so that the appended event will now be added to the table. But no matter what i seem to do nothing is showing up!

        class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
    
    
    @IBOutlet weak var txtTitle: UITextField!
    
    @IBOutlet weak var txtLocation: UITextField!
    
    @IBOutlet weak var txtDate: UITextField!
    
    @IBOutlet weak var txtTime: UITextField!
    
    var eventsArray = [Event]()
    

    override func viewDidLoad() {
        super.viewDidLoad()
       
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    
    //var events = Event(tits: "W", locs: "UVA-Wise")
    
    
       @IBAction func btnSave() {
        
       let event = Event(tits: txtTitle.text!, locs: txtLocation.text!)
        
        eventsArray.append(event)
        
        print(eventsArray)
        //reload data
        
    }
    
    
    @IBOutlet weak var table: UITableView!

    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return eventsArray.count
    }
    
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "cell") as! CustomeCell
        
        cell.title.text = eventsArray[indexPath.row].title
        cell.location.text = eventsArray[indexPath.row].location
        
        return cell
        
        
    }
    
    
}