The issue you're probably seeing is that UIImageView
has an intrinsicContentSize
, but GPUImageView
does not. This means that without any width/height constraints, a UIImageView
will display the image at its normal size, but not so with GPUImageView
(depending on your other constraints, it could have a 0 width/height).
You can either add additional constraints on the GPUImageView
to constrain its width and height to match what you expect, or you can subclass GPUImageView
and implement intrinsicContentSize
to return whatever you expect it to be. (It doesn't implement this normally because in general it can't determine a reasonable size would be; it renders to whatever size you make the view.)