malcommac / ImageSizeFetcher

Finds the type/size of an image given its URL by fetching as little data as needed
MIT License
441 stars 25 forks source link

"native" method to access Data rather than casting #2

Closed JanGorman closed 6 years ago

JanGorman commented 6 years ago

I noticed that the library was casting Data to NSData to access a subrange but there's support for that without having to bridge.

Random note: When I run the tests, the first couple of randomly generates images fetch fine but the rest fails and the tests do not fail because of that. It looks to me like that expectation.fulfill() is called too early

malcommac commented 6 years ago

Thank you, really nice enhancement @JanGorman