Replaced the GridViewCell with my own custom cell but can't connect to my cell to start populating data in my labels. Get error value type 'UITableViewCell' has no member 'loreLabel'
var datasource: [ChampionLore] = ChampionLore.loreData
override func viewDidLoad() {
super.viewDidLoad()
tableView.backgroundColor = .black
tableView.separatorStyle = .none
tableView.register(UINib(nibName: "AllTableViewCell", bundle: nil), forCellReuseIdentifier: "AllTableViewCell")
}
override func tableView(_: UITableView, numberOfRowsInSection _: Int) -> Int {
return 1
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "AllTableViewCell")!
let loreInfo = datasource[indexPath.row]
cell.loreLabel.text = loreInfo.lore
return cell
}