콘텐츠 메인 - 새로운 콘텐츠, 콘텐츠 랭킹 의 HStack -> LazyHStack으로 변경
This commit is contained in:
parent
c09920942c
commit
0c116fb700
|
@ -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)
|
||||
|
|
|
@ -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])
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue