material-components-ios
material-components-ios copied to clipboard
Dynamic selection of specific chipview in Filter chip iOS (Swift)
I could not find the dynamic selection of chip view in Filter chip in ios (Swift). Documentation has not any clue about it. I applied this in cellForItemAt but not working
collectionView.selectItem(at: indexPath, animated: true, scrollPosition: .centeredVertically)
I am using in collection view delegate cellForItemAt
let cell: MDCChipCollectionViewCell = collectionView.dequeueReusableCell(withReuseIdentifier: "identifier", for: indexPath) as! MDCChipCollectionViewCell
let chipView: MDCChipView = cell.chipView
Please consider it.