material-components-ios icon indicating copy to clipboard operation
material-components-ios copied to clipboard

Dynamic selection of specific chipview in Filter chip iOS (Swift)

Open usman1372 opened this issue 4 years ago • 1 comments

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

usman1372 avatar May 19 '21 06:05 usman1372

Please consider it.

usman1372 avatar May 21 '21 06:05 usman1372