Open Lee0820 opened 4 years ago
when I write this
changeCurrentIndexProgressive = { [weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in guard changeCurrentIndex == true else { return } oldCell?.label.textColor = .black newCell?.label.textColor = self?.blueInstagramColor newCell?.label.font = UIFont.systemFont(ofSize: 20) oldCell?.label.font = UIFont.systemFont(ofSize: 16)
}
Label can't support text
+1
when I write this
changeCurrentIndexProgressive = { [weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in guard changeCurrentIndex == true else { return } oldCell?.label.textColor = .black newCell?.label.textColor = self?.blueInstagramColor newCell?.label.font = UIFont.systemFont(ofSize: 20) oldCell?.label.font = UIFont.systemFont(ofSize: 16)
Label can't support text