feat(creator-profile): 커뮤니티 섹션 UI 변경

This commit is contained in:
Yu Sung
2025-10-17 06:58:15 +09:00
parent d178ba101f
commit 84747cdea7

View File

@@ -210,9 +210,18 @@ struct UserProfileView: View {
.padding(.horizontal, 24) .padding(.horizontal, 24)
} }
VStack(alignment: .leading, spacing: 14) {
HStack(spacing: 0) {
Text("커뮤니티")
.font(.custom(Font.preBold.rawValue, size: 26))
.foregroundColor(Color.white)
.padding(.horizontal, 24)
Spacer()
}
if viewModel.communityPostList.count > 0 { if viewModel.communityPostList.count > 0 {
ScrollView(.horizontal, showsIndicators: false) { ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(spacing: 13.3) { LazyHStack(spacing: 14) {
if UserDefaults.int(forKey: .userId) == creatorProfile.creator.creatorId { if UserDefaults.int(forKey: .userId) == creatorProfile.creator.creatorId {
CreatorCommunityWriteItemView() CreatorCommunityWriteItemView()
.onTapGesture { .onTapGesture {
@@ -249,7 +258,7 @@ struct UserProfileView: View {
) )
} }
} }
.padding(.horizontal, 13.3) .padding(.horizontal, 24)
.frame(height: maxCommunityPostHeight) .frame(height: maxCommunityPostHeight)
.onPreferenceChange(HeightPreferenceKey.self) { value in .onPreferenceChange(HeightPreferenceKey.self) { value in
if let current = maxCommunityPostHeight { if let current = maxCommunityPostHeight {
@@ -264,6 +273,8 @@ struct UserProfileView: View {
CreatorCommunityNoPostsItemView( CreatorCommunityNoPostsItemView(
onSuccess: creatorCommunityWriteSuccess onSuccess: creatorCommunityWriteSuccess
) )
.padding(.horizontal, 24)
}
} }
} }