hyperoslo / hyperoslo/Imaginary
Can I download big image without crash
Open
- Dominant language
- Swift
- Stars
- 610
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
If I download big image via
```swift
self.session.dataTask(with: request, completionHandler: { [weak self] data, response, error}
```
image stored inside response. And I can catch crash. How can I use URLSession's method
```swift
func downloadTask(with request: URLRequest,
completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
```
to store image in file
Contributor guide
Assessment
This issue has not been assessed yet.