Skip to content

Instantly share code, notes, and snippets.

Created October 15, 2022 03:18
What would you like to do?
final class ImageBatchLoader {
weak var delegate: ImageBatchLoaderDelegate?
init(delegate: ImageBatchLoaderDelegate) {
self.delegate = delegate
func start() { {
self.delegate?.imageLoader(self, didLoadBatch: [UIImage()])
protocol ImageBatchLoaderDelegate: AnyObject {
func imageLoader(_ imageLoader: ImageBatchLoader, didLoadBatch batch: [UIImage])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment