hyperoslo / hyperoslo/Imaginary

Can I download big image without crash

Open
#90 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.