feat(home): 팔로잉 전체 버튼을 고정한다

This commit is contained in:
Yu Sung
2026-08-18 13:59:03 +09:00
parent 9339a22a7d
commit b1cdbfe013
4 changed files with 199 additions and 33 deletions

View File

@@ -16,34 +16,34 @@ struct MainHomeFollowingCreatorSection: View {
}
var body: some View {
ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(alignment: .top, spacing: SodaSpacing.s12) {
ForEach(followingCreators) { creator in
CreatorProfileItem(
imageUrl: creator.creatorProfileImageUrl,
name: creator.creatorNickname,
imageSize: CGSize(width: 72, height: 72),
spacing: SodaSpacing.s8
) {
onTapCreator(creator.creatorId)
HStack(alignment: .top, spacing: SodaSpacing.s12) {
ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(alignment: .top, spacing: SodaSpacing.s12) {
ForEach(followingCreators) { creator in
CreatorProfileItem(
imageUrl: creator.creatorProfileImageUrl,
name: creator.creatorNickname,
imageSize: CGSize(width: 72, height: 72),
spacing: SodaSpacing.s8
) {
onTapCreator(creator.creatorId)
}
.frame(width: 72)
}
.frame(width: 72)
}
Button(action: onTapAll) {
Text(I18n.HomeFollowing.allButtonTitle)
.appFont(.body4)
.foregroundColor(Color.soda400)
.padding(.horizontal, 16)
.frame(height: allButtonHeight)
}
.buttonStyle(.plain)
.padding(.leading, SodaSpacing.s20)
}
.padding(.horizontal, SodaSpacing.s20)
.frame(maxWidth: .infinity, alignment: .leading)
Button(action: onTapAll) {
Text(I18n.HomeFollowing.allButtonTitle)
.appFont(.body5)
.foregroundColor(Color.soda400)
.frame(width: 70, height: 102, alignment: .center)
}
.buttonStyle(.plain)
}
}
private var allButtonHeight: CGFloat { 72 + SodaSpacing.s8 + 20 }
}
struct MainHomeFollowingCreatorSection_Previews: PreviewProvider {