How to find the first index of type

后端 未结 0 499
情话喂你
情话喂你 2021-01-13 11:54

I\'m trying to get the first index of an item with a provided type.

func firstIndexPath(of type: T) -> IndexPath? {
     for (sectionIndex, sectio         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题