feat(channel): 게시글 작성자 이동을 연결한다

This commit is contained in:
Yu Sung
2026-09-17 14:32:34 +09:00
parent 0337c47b03
commit ff460485d6
3 changed files with 26 additions and 16 deletions
+2 -2
View File
@@ -8945,7 +8945,7 @@
CODE_SIGN_ENTITLEMENTS = SodaLive/SodaLive.entitlements; CODE_SIGN_ENTITLEMENTS = SodaLive/SodaLive.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_ASSET_PATHS = "\"SodaLive/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"SodaLive/Preview Content\"";
DEVELOPMENT_TEAM = 3A8QGPMRXM; DEVELOPMENT_TEAM = 3A8QGPMRXM;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
@@ -8986,7 +8986,7 @@
CODE_SIGN_ENTITLEMENTS = SodaLive/SodaLive.entitlements; CODE_SIGN_ENTITLEMENTS = SodaLive/SodaLive.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_ASSET_PATHS = "\"SodaLive/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"SodaLive/Preview Content\"";
DEVELOPMENT_TEAM = 3A8QGPMRXM; DEVELOPMENT_TEAM = 3A8QGPMRXM;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
@@ -6,6 +6,7 @@ struct CreatorChannelCommunityPostDetailContentView: View {
let detail: CreatorChannelCommunityPostDetailResponse let detail: CreatorChannelCommunityPostDetailResponse
let onTapLike: () -> Void let onTapLike: () -> Void
let onTapPurchase: () -> Void let onTapPurchase: () -> Void
let onTapCreator: () -> Void
@StateObject private var playManager = CreatorCommunityMediaPlayerManager.shared @StateObject private var playManager = CreatorCommunityMediaPlayerManager.shared
@StateObject private var contentPlayManager = ContentPlayManager.shared @StateObject private var contentPlayManager = ContentPlayManager.shared
@@ -48,6 +49,7 @@ struct CreatorChannelCommunityPostDetailContentView: View {
} }
private var header: some View { private var header: some View {
HStack(spacing: SodaSpacing.s8) {
HStack(spacing: SodaSpacing.s8) { HStack(spacing: SodaSpacing.s8) {
DownsampledKFImage(url: URL(string: detail.creatorProfileUrl), size: CGSize(width: 42, height: 42)) DownsampledKFImage(url: URL(string: detail.creatorProfileUrl), size: CGSize(width: 42, height: 42))
.background(Color.gray800) .background(Color.gray800)
@@ -65,6 +67,9 @@ struct CreatorChannelCommunityPostDetailContentView: View {
.foregroundColor(Color.gray500) .foregroundColor(Color.gray500)
.lineLimit(1) .lineLimit(1)
} }
}
.contentShape(Rectangle())
.onTapGesture(perform: onTapCreator)
Spacer(minLength: 0) Spacer(minLength: 0)
} }
@@ -19,7 +19,8 @@ struct CreatorChannelCommunityPostDetailView: View {
CreatorChannelCommunityPostDetailContentView( CreatorChannelCommunityPostDetailContentView(
detail: detail, detail: detail,
onTapLike: viewModel.toggleLike, onTapLike: viewModel.toggleLike,
onTapPurchase: viewModel.presentPurchaseDialog onTapPurchase: viewModel.presentPurchaseDialog,
onTapCreator: { showCreatorChannel(creatorId: detail.creatorId) }
) )
if viewModel.isCommentInteractionAvailable { if viewModel.isCommentInteractionAvailable {
@@ -120,4 +121,8 @@ struct CreatorChannelCommunityPostDetailView: View {
) )
} }
private func showCreatorChannel(creatorId: Int) {
AppState.shared.setAppStep(step: .creatorDetail(userId: creatorId))
}
} }