Receiving Value of type \'IndexSet\' has no member \'enumerateIndexesUsingBlock\' error at enumerateIndexesUsingBlock.
/**
Extension for creatin
The Foundation type NSIndexSet has a enumerateIndexesUsingBlock
method. The corresponding overlay type IndexSet from Swift 3 is a collection, therefore you can just map each
index to an IndexPath:
extension IndexSet {
func bs_indexPathsForSection(_ section: Int) -> [IndexPath] {
return self.map { IndexPath(item: $0, section: section) }
}
}