remove instant backgounr color replacment

This commit is contained in:
Ilya 2017-09-01 18:51:14 +03:00
parent 72c4974a43
commit 9805a5106c
1 changed files with 1 additions and 3 deletions

View File

@ -140,9 +140,7 @@ class SegmentioCell: UICollectionViewCell {
segmentTitleLabel?.textColor = selected ? selectedState.titleTextColor : defaultState.titleTextColor
segmentTitleLabel?.font = selected ? selectedState.titleFont : defaultState.titleFont
}
backgroundColor = selected ? selectedState.backgroundColor : defaultState.backgroundColor
if (style != .onlyLabel) {
segmentImageView?.image = selected ? selectedImage : image
}