Skip to content

bug: 업로드, 프로필 편집시 PHPicker 이전에 선택한 것 reset #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

anyukyung
Copy link
Member

🧑‍🚀 PR 요약

해당 pr에서 작업한 내역을 적어주세요.

  • 처음에는 delegate result에서 identifier를 알 수 있는 방법을 찾지 못해서 우선 사용할 때마다 PHPicekr 인스턴스를 만들어서 사용하도록 했습니다 ! delegate result로 오는 item들은 모두 identifier가 nil이더군요..
  • 인환님께서 deselect 메서드 못쓰냐고해서 찾아보니까 PHPhotoLibrary.shared를 사용해서 PHPicker의 Configuration을 구성하면 delegate의 result로 identifier를 정상적으로 얻어오는 걸 알 수 있었어요!
  • PHPhotoLibrary.shared은 싱글톤으로 Photos 앱에 의해 관리되는 모든 사진과 비디오의 집합이라고 생각하시면 될 것 같습니다 !
📸 ScreenShot

작동, 구현화면

RPReplay_Final1702286117.MP4

Linked Issue

close #287

Copy link
Collaborator

@chopmozzi chopmozzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@loinsir
Copy link
Collaborator

loinsir commented Dec 11, 2023

인환님께서 deselect 메서드 못쓰냐고해서 찾아보니까 PHPhotoLibrary.shared를 사용해서 PHPicker의 Configuration을 구성하면 delegate의 result로 identifier를 정상적으로 얻어오는 걸 알 수 있었어요!

와 저도 이렇게 할 수 있다는 거 처음 알았네요... 매번 itemIdentifier nil로 와서 언제 쓰는지 궁금했었는데...

Copy link
Collaborator

@loinsir loinsir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다. 저도 몰랐던 방법....유용하게 알아갑니다!

@anyukyung anyukyung merged commit 7490581 into iOS/dev Dec 11, 2023
@anyukyung anyukyung linked an issue Dec 11, 2023 that may be closed by this pull request
1 task
@anyukyung anyukyung deleted the iOS/bug#287 branch January 10, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: 업로드, 프로필 편집시 PHPicker 이전에 선택한 것 reset
3 participants