This post showcases the ability to search through the user's device for files, in this case, specifically PDFs. This same principle can be used to select images or other types of files from the user's device just by changing a few lines of code. The code begins by adding an @objc function with UIDocumentPicker to the blank image so that when it is interacted with, the code asks the user permission to browse the users documents. From there the user can see what files they have on their device (or devices if you have multiple devices connected to each other).
top of page
appsbyap.com
bottom of page
Comments