크리에이터 채널 시리즈 - 스크롤뷰 추가

시리즈 전체 보기 - 상단 정렬 방식으로 수정
This commit is contained in:
Yu Sung 2024-04-30 16:49:14 +09:00
parent a08b463c11
commit 1e5ee80ca2
3 changed files with 15 additions and 13 deletions

View File

@ -14,9 +14,9 @@ struct SeriesListAllView: View {
let creatorId: Int let creatorId: Int
let columns = [ let columns = [
GridItem(.flexible()), GridItem(.flexible(), alignment: .top),
GridItem(.flexible()), GridItem(.flexible(), alignment: .top),
GridItem(.flexible()) GridItem(.flexible(), alignment: .top)
] ]
var body: some View { var body: some View {

View File

@ -29,6 +29,7 @@ struct UserProfileSeriesView: View {
} }
} }
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 13.3) { HStack(spacing: 13.3) {
ForEach(0..<items.count, id: \.self) { ForEach(0..<items.count, id: \.self) {
let item = items[$0] let item = items[$0]
@ -43,6 +44,7 @@ struct UserProfileSeriesView: View {
} }
} }
} }
}
#Preview { #Preview {
UserProfileSeriesView( UserProfileSeriesView(

View File

@ -79,7 +79,7 @@ struct SeriesListItemView: View {
.font(.custom(Font.medium.rawValue, size: 11)) .font(.custom(Font.medium.rawValue, size: 11))
.foregroundColor(Color.gray77) .foregroundColor(Color.gray77)
} }
.frame(width: 116.7) .frame(width: 102)
} }
} }