Post

Replies

Boosts

Views

Activity

Cannot assign value of type 'hghg.SneakerStore' to type 'hghg.SneakerStore'
hi im trying to fix this error but I don't get what I should do here im always getting the error: Cannot assign value of type 'hghg.SneakerStore' to type 'hghg.SneakerStore' in the underlined section of the code hope maybe someone can help me @IBAction func showSummary(_ sender: UIBarButtonItem) {                 let storyboard = UIStoryboard(name: "Main", bundle: nil)                 let summaryVC = storyboard.instantiateViewController(withIdentifier: "SummaryViewController") as! SummaryViewController                 summaryVC.sneakerStore = sneakerStore                 navigationController?.pushViewController(summaryVC, animated: true)             }             @IBAction func scanBarcode(_ sender: UIBarButtonItem) {                 let barcodeScannerVC = BarcodeScannerViewController()                 present(barcodeScannerVC, animated: true)             }
1
0
287
Mar ’23