Created
April 13, 2016 09:30
-
-
Save koke/8dfd748cd0e0417460a22d3d50af95ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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