추천 시리즈, 새로운 콘텐츠, 지금 라이브중

- 새로고침 버튼 추가
This commit is contained in:
Yu Sung 2024-05-07 18:45:05 +09:00
parent bcba83a8a7
commit 511bb11550
3 changed files with 53 additions and 6 deletions

View File

@ -48,6 +48,24 @@ struct ContentMainNewContentView: View {
} }
} }
HStack(spacing: 8) {
Image("ic_refresh")
Text("새로고침")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color.grayd2)
}
.padding(.vertical, 11)
.frame(maxWidth: .infinity)
.overlay(
RoundedRectangle(cornerRadius: 26.7)
.stroke(Color.gray90, lineWidth: 1)
)
.onTapGesture {
viewModel.getThemeList()
viewModel.getNewContentOfTheme()
}
if viewModel.isLoading { if viewModel.isLoading {
ActivityIndicatorView() ActivityIndicatorView()
.frame(width: 100, height: 100) .frame(width: 100, height: 100)

View File

@ -27,6 +27,23 @@ struct ContentMainRecommendSeriesView: View {
} }
} }
} }
HStack(spacing: 8) {
Image("ic_refresh")
Text("새로고침")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color.grayd2)
}
.padding(.vertical, 11)
.frame(maxWidth: .infinity)
.overlay(
RoundedRectangle(cornerRadius: 26.7)
.stroke(Color.gray90, lineWidth: 1)
)
.onTapGesture {
viewModel.getRecommendSeriesList()
}
} }
.padding(.bottom, 26.7) .padding(.bottom, 26.7)
.padding(.horizontal, 13.3) .padding(.horizontal, 13.3)

View File

@ -26,12 +26,6 @@ struct SectionLiveNowView: View {
.font(.custom(Font.bold.rawValue, size: 18.3)) .font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "ff5c49")) .foregroundColor(Color(hex: "ff5c49"))
Image("ic_refresh")
.padding(.leading, 10)
.onTapGesture {
onClickRefresh()
}
Spacer() Spacer()
if items.count > 0 { if items.count > 0 {
@ -88,6 +82,24 @@ struct SectionLiveNowView: View {
.background(Color(hex: "13181b")) .background(Color(hex: "13181b"))
.cornerRadius(4.7) .cornerRadius(4.7)
} }
HStack(spacing: 8) {
Image("ic_refresh")
Text("새로고침")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color.grayd2)
}
.padding(.vertical, 11)
.frame(maxWidth: .infinity)
.overlay(
RoundedRectangle(cornerRadius: 26.7)
.stroke(Color.gray90, lineWidth: 1)
)
.padding(.horizontal, 13.3)
.onTapGesture {
onClickRefresh()
}
} }
} }
} }