Closed hassanvfx closed 3 years ago
The following PR implements the following modifiers both for UICollectionView and UITableView:
example:
ASCollectionView(data: model.items, dataID: \.self) { item, context in InstaCard(model: instaCardModel(for: item), geo: geo, item: item){ model.open(newsItem: item) } } .layout { .list(itemSize:.estimated(123)) } .onPullToRefresh { (finish) in model.loadNews() DispatchQueue.main.asyncAfter(deadline: .now() + 2) { finish() } } .onWillDisplay{ _, indexPath in player(at: indexPath)?.play() } .onDidDisplay{ _, indexPath in player(at: indexPath)?.pause() }
Overview
The following PR implements the following modifiers both for UICollectionView and UITableView:
example: