Fixes potential crash when launching games
This commit is contained in:
parent
ca4ccfc3ae
commit
1f298f8e79
@ -189,8 +189,8 @@ private extension GameCollectionViewController
|
|||||||
//MARK: - Data Source
|
//MARK: - Data Source
|
||||||
func prepareDataSource()
|
func prepareDataSource()
|
||||||
{
|
{
|
||||||
self.dataSource.cellConfigurationHandler = { [unowned self] (cell, item, indexPath) in
|
self.dataSource.cellConfigurationHandler = { [weak self] (cell, item, indexPath) in
|
||||||
self.configure(cell as! GridCollectionViewCell, for: indexPath)
|
self?.configure(cell as! GridCollectionViewCell, for: indexPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
self.dataSource.prefetchHandler = { (game, indexPath, completionHandler) in
|
self.dataSource.prefetchHandler = { (game, indexPath, completionHandler) in
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user