feat: [키링 완성뷰/키링 상세뷰] - 영상 공유 기능 구현 및 이미지 저장 방식 수정#35
Merged
Hidden character warning
The head ref may contain hidden characters: "feature/-\ud0a4\ub9c1-\uc644\uc131\ubdf0-\uacf5\uc720\uae30\ub2a5-\uad6c\ud604"
Conversation
- KeyringCellScene init에 bodyUIImage 파라미터 추가 - KeyringCellScene+Setup에서 UIImage 우선 사용하도록 수정 - KeyringCompleteView+SaveImage에서 화면 캡처 → Scene 캡처로 변경 - customBackgroundColor: .clear로 투명 배경 적용
- cachedVideoURL : 생성된 영상 캐싱 (시트 다시 열 수 있으니까) - showShareSheet : 공유 시트 표시 여부
- 공유 버튼 클릭 시 캐시 확인 후 영상 생성 - generateVideoForShare(): 영상 생성 후 캐싱 - cleanupCachedVideo(): 캐시 파일 삭제
- ShareSheet.swift 생성 (파일명 바뀔 수도 있음) - KeyringCompleteView에 연결
- 공유버튼 클릭 시, 정보시트가 확실히 내려가고 공유시트가 올라오게 해야함. - 안그러면 시트 충돌로 스크롤버그 발생
- 기존 화면캡처 -> png 투명배경으로 저장
- bodyImage 동기 로딩 → URLSession 비동기 다운로드로 변경 - downloadBodyImage() 함수 추가 - KeyringAdapter에 preloadedBodyImage 전달
- 블러 애니메이션 종료 후 공유 시트 표시하도록 수정
Member
|
카드 재발급 받으러 재입대?!! |
- LoadingAlert 활용
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
1. 공유 시트 구현
2. 전체 화면 캡처 -> 투명 배경 PNG 캡처로 변경
3. 완성뷰 로직을 키링 상세뷰에도 적용, 하이파이 적용
4. 그 외, 테스트하며 영상 생성/공유 시트 UX 개선
🎯 PR 내용
UIActivityViewController 선택 이유
SwiftUI의 ShareLink 대신 UIKit의 UIActivityViewController를 래핑한 ShareSheet를 사용했습니다.
ShareLink의 한계:
UIActivityViewController의 장점:
정리
ShareLink로는 영상 생성 대기가 불가능 (즉시 열림)
UIActivityViewController로 가능 (타이밍 제어)
변경 사항 자세히 보기
1. 공유 기능 (CollectionKeyringDetailView)
2. 이미지 저장 (투명 PNG)
3. 네비게이션 바 개선
4. 성능 및 버그 수정
📱 스크린샷 (UI 변경 시)
ScreenRecording_01-31-2026.13-32-21_1.1.mp4
ScreenRecording_01-31-2026.13-36-54_1.1.1.mov
🔗 관련 이슈
✅ 체크리스트