라이브 - 커버이미지 수정방식 변경
AS-IS : 방 정보를 가져올 때 마다 변경 TO-BE : 이전 이미지 url과 다른 경우 에만 커버이미지 변경
This commit is contained in:
@@ -277,8 +277,8 @@ struct LiveRoomView: View {
|
||||
ScrollViewReader { proxy in
|
||||
ZStack(alignment: .bottomTrailing) {
|
||||
GeometryReader { proxy in
|
||||
if let liveRoomInfo = viewModel.liveRoomInfo, viewModel.isBgOn {
|
||||
KFImage(URL(string: liveRoomInfo.coverImageUrl))
|
||||
if let coverImageUrl = viewModel.coverImageUrl, viewModel.isBgOn {
|
||||
KFImage(URL(string: coverImageUrl))
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: proxy.size.width, height: proxy.size.height, alignment: .center)
|
||||
|
||||
Reference in New Issue
Block a user