I have set up a collection view cell programmatically which I am registering in the cell registration of a diffable data source. I have set up a delegate for the cell, and the view controller which contains the collection view as the delegate for the cell. However, calling the cell delegate method from the cell is not calling the method in the view controller.
This is my code:
`// in my view controller: cell.delegate = self
// in my collection view cell: delegate?.repromptLLMForIconName(iconName, index: index, emotion: emotion, red: red, green: green, blue: blue)
`
But although the delegate method in the collection view gets called, my method implementation in the view controller does not. What could possibly be going wrong?
Topic:
UI Frameworks
SubTopic:
UIKit