I am trying to create an app which uses vision kit to scan the documents and saves it as a PDF file. Currently the app saves only the first image and the other pictures are not. I am looking to modify the code to save all the captured images. I tried using a for loop statement but the pop up as you can see in the attachment stops coming.