Skip to content

Commit

Permalink
fix: 밈 상세 배경 요구사항 맞게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chansooo committed Oct 1, 2024
1 parent 90371f0 commit 066fc54
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Projects/Features/MemeDetail/Sources/MemeDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ public struct MemeDetailView: View {
tabBarTap(tab)
}
.background(
KFImage(URL(string: viewModel.state.meme.imageUrlString))
.resizable()
.loadDiskFileSynchronously()
.cacheMemoryOnly()
.aspectRatio(contentMode: .fill)
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)
.clipped()
.opacity(0.4)
.edgesIgnoringSafeArea(.top)
KFImage(URL(string: viewModel.state.meme.imageUrlString))
.resizable()
.loadDiskFileSynchronously()
.cacheMemoryOnly()
.aspectRatio(contentMode: .fill)
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)
.clipped()
.opacity(0.4) // Image Opacity: 40%
.blur(radius: 50) // Layer Blur: 50
.overlay(Color.white.opacity(0.3)) // White Dim: #fff, Opacity: 30%
.edgesIgnoringSafeArea(.top)
)
.onAppear {
viewModel.logMemeDetail(interaction: .view, event: .meme)
Expand Down

0 comments on commit 066fc54

Please sign in to comment.