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

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

Forums > 100 Days of SwiftUI

Hello,

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: https://stackoverflow.com/questions/71954672/how-to-load-image-from-photos-using-new-phpicker-in-ios-programmatically) 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.

2      

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.

2      

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.

3      

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

2      

Save 50% in my WWDC sale.

SAVE 50% To celebrate WWDC24, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

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.