Feature of image mapping like in POP app in ios using SWIFT

I want to implement the feature of image mapping like in POP (prototype on paper) app, in which the user drop a selection area over the image and link it to the next image and run whole this together. How to do this in SWIFT?