Skip to content

[feat/#354] 이미지 Placeholder 추가#355

Merged
SeungWon1125 merged 3 commits intodevelopfrom
feat/#354-kfimage-placeholder
Nov 28, 2025
Merged

[feat/#354] 이미지 Placeholder 추가#355
SeungWon1125 merged 3 commits intodevelopfrom
feat/#354-kfimage-placeholder

Conversation

@SeungWon1125
Copy link
Copy Markdown
Collaborator

📄 작업 내용

  • 이미지 url이 유효하지 않거나, 사진이 없을 경우 표시할 placeholder 추가했습니다(KFImage)
구현 내용 iPhone 13 mini iPhone 17 pro
A 기능

💻 주요 코드 설명

KFImage의 placeholder 사용

KFImage(URL(string: mainImageURL))
    .placeholder {
        Image(.placePlaceholder)
            .resizable()
            .aspectRatio(contentMode: .fill)
    }
    .resizable()
    // ...

.placeholder를 사용하여 placeholder를 추가했어요
간단하죠

🔗 연결된 이슈

@SeungWon1125 SeungWon1125 requested a review from a team November 28, 2025 16:18
@SeungWon1125 SeungWon1125 self-assigned this Nov 28, 2025
@SeungWon1125 SeungWon1125 added 🦒 seungwon 승원이가함! 📎 chore 별로 중요한 수정이 아닐 시 사용 labels Nov 28, 2025
@SeungWon1125 SeungWon1125 linked an issue Nov 28, 2025 that may be closed by this pull request
1 task
@SeungWon1125 SeungWon1125 added the 🛠️ feat 새로운 기능 구현 시 사용 label Nov 28, 2025
Copy link
Copy Markdown
Contributor

@seojoozero seojoozero left a comment

Choose a reason for hiding this comment

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

굿굿 ~

Comment on lines +46 to +50
.placeholder {
Image(.placePlaceholder)
.resizable()
.aspectRatio(contentMode: .fill)
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

KingFisher에 placeholder가 있어서 이미지만 설정해주면 되는 건가욤 ?? 신기하군뇨

@SeungWon1125 SeungWon1125 merged commit 3525425 into develop Nov 28, 2025
@SeungWon1125 SeungWon1125 deleted the feat/#354-kfimage-placeholder branch November 28, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📎 chore 별로 중요한 수정이 아닐 시 사용 🛠️ feat 새로운 기능 구현 시 사용 🦒 seungwon 승원이가함!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] KFImage placeholder 설정

2 participants