Skip to content

Commit fe7631a

Browse files
Fix button in Xcode 13 not being selected properly
1 parent d005546 commit fe7631a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TeadsSampleApp/Controllers/RootController/RootControllerCells/RootButtonCollectionViewCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RootButtonCollectionViewCell: UICollectionViewCell {
2121

2222
override var isSelected: Bool {
2323
didSet {
24-
if isSelected {
24+
if isSelected != oldValue {
2525
label.backgroundColor = .primary
2626
label.textColor = .white
2727
layer.borderColor = UIColor.primary.cgColor

0 commit comments

Comments
 (0)