Skip to content

Instantly share code, notes, and snippets.

@koke
Created April 13, 2016 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koke/8dfd748cd0e0417460a22d3d50af95ee to your computer and use it in GitHub Desktop.
Save koke/8dfd748cd0e0417460a22d3d50af95ee to your computer and use it in GitHub Desktop.
func functional_setResizedImage(withURL url: NSURL) {
fetchData(
requestForImageUrl(
photonize(url: url, forSize: frame.size)
)
) { data in
unwrapOptional(
imageFromResponseData(data),
then: applyImageInMainQueue(to: self)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment