This is change allows to use HNKImageViewEntity outside the UIImageView+Haneke files. With this change the users can create his own categories. We are using it to use Haneke with UIButton.
Moved HNKImageViewEntity to a file to allow using it outside the UIIm…
Moved error enum to HNKImageViewEntity
I have a very specific idea of how to extract some of the logic of the UIImageView category into remote and disk entity (sub)classes, which would simplify implementing other categories for other UI components with images (such as UIButton).
What I'm thinking of doing doesn't exactly match your pull, so I'm afraid I won't be able to merge it. I'll leave the pull open in the meantime as it might be interesting to others who are thinking of creating their own entity classes.
@hpique I'm sure your solution will be better than mine, meanwhile it's great that you leave this pull request open so if anyone else needs to use haneke with other UI components can use it.
Closing this PR as we now have a UIButton+Category in Haneke 1.0.