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

- 새로고침 버튼 추가
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 {
ActivityIndicatorView()
.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(.horizontal, 13.3)