Consider a UIScrollView
with a single subview. The subview is an
translatesAutoresizingMaskIntoConstraints
is only required when you instantiate the view in the code. If you instantiate it in the IB it's disabled by default
In my opinion the UIImageView
should fill the ScrollView
. Later I'd try setting the zoom of the scrollview
to the value that suits you well so the image can only be panned in one direction