fix(detail): 콘텐츠/시리즈 상세 로딩 실패 시 자동 복귀를 적용한다

This commit is contained in:
Yu Sung
2026-02-26 01:20:37 +09:00
parent db68aa90d2
commit 38fb818f4b
4 changed files with 119 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
## 작업 개요
- 콘텐츠 상세 페이지에서 상세 데이터 로딩 실패 시 토스트만 노출되고 이전 페이지로 자동 복귀하지 않는 문제를 수정한다.
## 체크리스트
- [x] 콘텐츠 상세 로딩 실패 처리 지점 확인
- [x] 로딩 실패 시 토스트 노출 후 이전 페이지 자동 이동 로직 추가
- [x] 관련 상태 변수 초기화/중복 이동 방지 처리 추가
- [x] LSP 진단 및 빌드 검증
## 검증 기록
- 무엇/왜/어떻게: `ContentDetailView`에서 로딩 실패 토스트 노출 시 `audioContent == nil` 조건을 만족하면 2초 후 자동 뒤로가기를 수행하도록 `onChange(of: viewModel.isShowPopup)``goBack()` 재사용 로직을 추가했다. 중복 이동 방지를 위해 `didTriggerAutoBackOnLoadFailure`, 화면 생명주기 안전성을 위해 `isViewVisible` 상태를 함께 적용했다.
- 실행 명령: `pod install`
결과: 성공 (`Pod installation complete`)
- 실행 명령: `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" -configuration Debug build`
결과: 성공 (`** BUILD SUCCEEDED **`)
- 실행 명령: `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" test`
결과: 실패 (`Scheme SodaLive is not currently configured for the test action.`)
- 실행 도구: `lsp_diagnostics` (`ContentDetailView.swift`)
결과: SourceKit 환경에서 `No such module 'Kingfisher'` 진단이 지속되었으나, 실제 `xcodebuild` 빌드는 성공해 코드 변경으로 인한 컴파일 오류는 없음을 확인했다.