color add
This commit is contained in:
parent
4b9ea6a799
commit
0efd49e6f4
@ -237,13 +237,13 @@ extension Tabs: UICollectionViewDelegateFlowLayout {
|
|||||||
|
|
||||||
collect.selectItem(at: indexPath, animated: animated, scrollPosition: .centeredHorizontally)
|
collect.selectItem(at: indexPath, animated: animated, scrollPosition: .centeredHorizontally)
|
||||||
guard let tabCell = collect.cellForItem(at: indexPath) as? TabItemCell, let tabsModel = self.tabsModel else { return }
|
guard let tabCell = collect.cellForItem(at: indexPath) as? TabItemCell, let tabsModel = self.tabsModel else { return }
|
||||||
self.moveBottomLine(toIndex: indexPath, animated: animated, cell: tabCell)
|
moveBottomLine(toIndex: indexPath, animated: animated, cell: tabCell)
|
||||||
tabCell.label.textColor = tabsModel.selectedColor.uiColor
|
tabCell.label.textColor = tabsModel.selectedColor.uiColor
|
||||||
tabCell.updateAccessibility(indexPath: indexPath, selected: true, tabsModel: tabsModel)
|
tabCell.updateAccessibility(indexPath: indexPath, selected: true, tabsModel: tabsModel)
|
||||||
tabCell.setNeedsDisplay()
|
tabCell.setNeedsDisplay()
|
||||||
tabCell.setNeedsLayout()
|
tabCell.setNeedsLayout()
|
||||||
tabCell.layoutIfNeeded()
|
tabCell.layoutIfNeeded()
|
||||||
self.delegate?.didSelectItem(indexPath, tabs: self)
|
delegate?.didSelectItem(indexPath, tabs: self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user