Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new _ImageDecoding infrastructure #349

Merged
merged 2 commits into from
Mar 27, 2020
Merged

Add new _ImageDecoding infrastructure #349

merged 2 commits into from
Mar 27, 2020

Conversation

kean
Copy link
Owner

@kean kean commented Mar 27, 2020

  • Add new experimental _ImageDecoding protocol
public protocol _ImageDecoding: ImageDecoding {
    func decode(data: Data) -> ImageContainer?
    func decodeProgressively(data: Data) -> ImageContainer?
}
  • Add ImageContainer type which contains image along with associated image data (optional, depends on decoder), and user info.
  • Add SVG example in README
  • Add SwiftSVG integration demo
  • Add ImageDecoders.Empty

All change are fully backward comparably, nothing is deprecated

@kean kean force-pushed the pass-data-to-response branch from 171e92b to e4c5d5e Compare March 27, 2020 21:40
@kean kean mentioned this pull request Mar 27, 2020
@kean kean merged commit 0f9f277 into master Mar 27, 2020
@kean kean deleted the pass-data-to-response branch March 27, 2020 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant