Presently delete core data item in uicollectionviewcell through tag

I am trying to permanently delete a single element from a core data set. Right now the code below removes the core data item but it does not permanently delete it. Once the class is called again it shows up again like nothing happened. I want it permanently deleted.

          var itemName : [Item] = []
  @objc func elete(_ sender:UIButton){
itemName.remove(at: sender.tag)


@timswift Do you still have issues with this?

This topic was automatically closed after 166 days. New replies are no longer allowed.