Hello, I observe something strange today, similar to this feedback: https://stackoverflow.com/questions/63987896/problem-with-gesture-in-xcode-12-and-ios-14
In my case we have an UICollectionView which contain an UiTableView.
My UITableViewCells will contain an UIView container, parent of the entire contents of the cell.
Nothing really complex.
But since ios14 xCode 12 all my interactions contained in my container are disabled.
I then discovered the post above, which refers to the mandatory use of contentView now.
I have also observed that by simply doing this :
without using the contentView, everything was fixed. Which makes me think of a bug.
My question is therefore the following, I have successfully migrated to using contentView, but is this a bug or
should we now use default contentView in a cell?
Thx for you time :)
In my case we have an UICollectionView which contain an UiTableView.
My UITableViewCells will contain an UIView container, parent of the entire contents of the cell.
Code Block let container: UIView = { let v = UIView() v.translatesAutoresizingMaskIntoConstraints = false return v }() override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) self.addSubview(container) ... self.updateConstraintsIfNeeded() }
Nothing really complex.
But since ios14 xCode 12 all my interactions contained in my container are disabled.
I then discovered the post above, which refers to the mandatory use of contentView now.
Code Block self.contentView.addSubview(container)
I have also observed that by simply doing this :
Code Block self.contentView.backgroundColor = .clear self.addSubview(container)
without using the contentView, everything was fixed. Which makes me think of a bug.
My question is therefore the following, I have successfully migrated to using contentView, but is this a bug or
should we now use default contentView in a cell?
Thx for you time :)