BLACK FRIDAY SALE: Save 50% on all my Swift books and bundles! >>

SOLVED: Day 62 - 67, location of default pictures library.

Forums > 100 Days of SwiftUI


We learnt to use PHPicker on Day 62-67. However, altough I have my own images located in photos library, it always show some default images (6 images shown on link: and I could not find the location of these images. So , I have 2 questions;

  1. Where is the location of these default images?
  2. Can I use my own photo library while working?

Thank you.


These Photo image are in the simulator "Photos Library" app if you want to use your photos and your Photo are saved to iCloud then on simulator setting sign in to your iCloud account, and make sure that iCloud Photo are turned on. You should then have access to your photos.


I don't know the file path to where these images are saved. But the simulator works basically the same way as the actual iPhone, so you can find those photos by opening the "Photos" app on the simulator. Any photos that you save to the photo library in the simulator will show up in the photos app, or in your app that uses a photo picker.


I have also find that drag&drop photos to photo library in simulator is also working.


Hacking with Swift is sponsored by Guardsquare

SPONSORED AppSweep by Guardsquare helps developers automate the mobile app security testing process with fast, free scans. By using AppSweep’s actionable recommendations, developers can improve the security posture of their apps in accordance with security standards like OWASP.

Learn more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.