Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brillcp authored May 14, 2021
1 parent 4caf9de commit 0133aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct NetworkAgent {

The table views and collection views are data driven and they setup their own UI based on the data they are given. So setting up a collection view data source is done like this:
```swift
let items: [CollectionCell] = pokemon.map { .pokemonCell(from: $0) }
let items = pokemon.map { CollectionCellConfiguration<PokedexCell, PokemonDetails>(data: $0) }
let section = UICollectionView.Section(items: items)
let collectionData = UICollectionView.DataSource(sections: [section])
```
Expand Down

0 comments on commit 0133aa7

Please sign in to comment.