Merge branch 'release/11_2_0' into develop

This commit is contained in:
Matt Bruce 2024-02-07 15:50:12 -06:00
commit 931a697f5c

View File

@ -201,8 +201,8 @@ extension ButtonGroup: UICollectionViewDataSource, UICollectionViewDelegate {
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let button = buttons[indexPath.row]
guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "collectionViewCell", for: indexPath) as? ButtonGroupCollectionViewCell else { return UICollectionViewCell() }
cell.subviews.forEach { $0.removeFromSuperview() }
cell.addSubview(button)
cell.contentView.subviews.forEach { $0.removeFromSuperview() }
cell.contentView.addSubview(button)
button.pinToSuperView()
if hasDebugBorder {
cell.addDebugBorder()