Created
March 19, 2025 07:57
-
-
Save gaeng2y/cce002a21481b3b403eb8219a3b79c1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @MainActor | |
| class MyDelegate: UICollectionViewDelegate { | |
| func collectionView(_ view: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt item: IndexPath) { | |
| let ids = getThumbnailIDs(for: item) | |
| // Error: 'await' in a function that does not support concurrency | |
| let thumbnails = await fetchThumbnails(for: ids) | |
| display(thumbnails, in: cell) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment