Situations that arise when using Compositional Layout:
isSelected
to modify the UI when the value changes can make it difficult to implement detailed custom actions. Therefore, you might consider using conditions or flags in the cellForRowAt
method to set the UI for selected and unselected cells.selectionStyle
to none for UITableViewCell, UICollectionViewCell does not support this. Thus, I modified the shouldHighlightItemAt
method to ensure that the specific cell is not highlighted. However, returning false
in this method causes the cell to not be touchable, so I need to consider other solutions.section.boundarySupplementaryItems
, or if you want to change the footer height, you can adjust the height of the footer. β In other words, when reloading, the layout needs to be reset.prepareForReuse
or trying to reset the layout, but it did not work. I looked into the estimation calculation method, but it seems Apple does not provide specific details on how the width is calculated. I need to investigate the exact cause of this issue in more detail later.updateConstraints
cannot be used.systemLayoutSizeFitting
, aligning the internal stack view to the bottom of the superview causes the stack view to be truncated.systemLayoutSizeFitting
.