I have a UIImageView
on my storyboard that displays an image that takes up the entire screen with aspect fill. Then on top of that I have a large UIView
that is centered on screen called middleView. I am wondering how I can add custom UIViews
on screen that will display the back UIImageView
, but will only display the portion that they cover. The effect I am wanting is for the custom UIViews
to make it look like the large centered UIView
middleView has holes in it. Also I need for the front custom UIViews to be transformable so that the image inside them is always what is on the back imageView at their current position.
Final note: The image for the back UIImageView
will always be the same so I don't necessarily need it to know what the back UIImageView
is. The imageView will always be initialized with the same UIImage, start at the origin, and fill the screen with an aspect fill.