I wanted to add a pinch to zoom feature to my side project and could not find an updated tutorial for how to replicate the iOS single image view. This is the view you see after tapping a photo in the iOS Photos app. Here are the steps I took to recreate this experience.
We won’t actually save images in core data but use it as a means for retrieving images from the app’s sandboxed file system. We will generate a unique name for that image and save the .png to the app’s file system. Then save the name of that .png as an attribute value in core data.