라이브, 콘텐츠, 채널 공유 재추가

- AppsFlyer OneLink로 공유링크 생성
This commit is contained in:
Yu Sung
2025-03-07 01:30:39 +09:00
parent 285eb585e0
commit 4a0ccfa075
4 changed files with 57 additions and 3 deletions

View File

@@ -57,7 +57,11 @@ struct UserProfileView: View {
} showCreatorFollowNotifyDialog: {
isShowFollowNotifyDialog = true
} shareChannel: {
viewModel.shareChannel(userId: userId)
viewModel.shareChannel(
userId: creatorProfile.creator.creatorId,
nickname: creatorProfile.creator.nickname,
profileImage: creatorProfile.creator.profileUrl
)
}
if creatorProfile.isCreatorRole {

View File

@@ -398,7 +398,17 @@ final class UserProfileViewModel: ObservableObject {
.store(in: &subscription)
}
func shareChannel(userId: Int) {
func shareChannel(userId: Int, nickname: String, profileImage: String) {
let shareUrl = "https://voiceon.onelink.me/RkTm?" +
"af_dp=voiceon://" +
"&deep_link_value=channel" +
"&deep_link_sub5=\(userId)" +
"&af_og_title=보이스온" +
"&af_og_description=보이스온 \(nickname)님의 채널입니다." +
"&af_og_image=\(profileImage)"
self.shareMessage = "보이스온 \(nickname)님의 채널입니다.\n\(shareUrl)"
self.isShowShareView = true
}
func userBlock(userId: Int) {