콘텐츠 메인 - 새로운 콘텐츠, 콘텐츠 랭킹 의 HStack -> LazyHStack으로 변경

This commit is contained in:
Yu Sung 2023-12-11 21:47:59 +09:00
parent c09920942c
commit 0c116fb700
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ struct ContentMainNewContentThemeView: View {
var body: some View {
ScrollView(.horizontal, showsIndicators: false) {
HStack(alignment: .top, spacing: 8) {
LazyHStack(alignment: .top, spacing: 8) {
ForEach(0..<themes.count, id: \.self) { index in
let theme = themes[index]
Text(theme)

View File

@ -40,7 +40,7 @@ struct ContentMainNewContentView: View {
if !viewModel.newContentList.isEmpty {
ScrollView(.horizontal, showsIndicators: false) {
HStack(alignment: .top, spacing: 13.3) {
LazyHStack(alignment: .top, spacing: 13.3) {
ForEach(0..<viewModel.newContentList.count, id: \.self) {
ContentMainItemView(item: viewModel.newContentList[$0])
}

View File

@ -15,7 +15,7 @@ struct ContentMainRankingSortView: View {
var body: some View {
ScrollView(.horizontal, showsIndicators: false) {
HStack(alignment: .top, spacing: 8) {
LazyHStack(alignment: .top, spacing: 8) {
ForEach(0..<sorts.count, id: \.self) { index in
let sort = sorts[index]
Text(sort)