Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ struct MultiKeyringSceneView: View {
loadBackgroundImage()
setupScene()
}

// 키링이 없으면 즉시 준비 완료 콜백 호출
if keyringDataList.isEmpty {
onAllKeyringsReady?()
}
}
.onChange(of: backgroundImageURL) { _, _ in
loadBackgroundImage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ class HomeViewModel {

/// 키링 데이터 변경 감지 시 씬 준비 상태 초기화
func handleKeyringDataChange() {
// 빈 뭉치면 이미 createKeyringDataList에서 isSceneReady = true 설정됨
// 다시 false로 리셋하면 무한로딩 발생
guard !keyringDataList.isEmpty else { return }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

그놈의 무한로딩... 해결 방안이 명확하네요.


withAnimation(.easeIn(duration: 0.2)) {
isSceneReady = false
}
Expand Down