public protocol DataLoading
Fetches original image data.
Types Conforming to
Provides basic networking using
func loadData(with request: URLRequest, didReceiveData: @escaping (Data, URLResponse) -> Void, completion: @escaping (Error?) -> Void) -> Cancellable
- parameter didReceiveData: Can be called multiple times if streaming is supported.
- parameter completion: Must be called once after all (or none in case
of an error)
didReceiveDataclosures have been called.