parent
ca7a2d4c72
commit
b5b53f95c7
|
@ -36,12 +36,18 @@ struct AuditionApplicantItemView: View {
|
|||
)
|
||||
}
|
||||
}
|
||||
.onTapGesture {
|
||||
AppState.shared.setAppStep(step: .creatorDetail(userId: item.memberId))
|
||||
}
|
||||
|
||||
VStack(spacing: 8) {
|
||||
HStack(spacing: 0) {
|
||||
Text(item.nickname.count > 9 ? "\(item.nickname.prefix(9))..." : item.nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color.white)
|
||||
.onTapGesture {
|
||||
AppState.shared.setAppStep(step: .creatorDetail(userId: item.memberId))
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ struct GetCreatorProfileResponse: Decodable {
|
|||
let activitySummary: GetCreatorActivitySummary
|
||||
let seriesList: [SeriesListItem]
|
||||
let isBlock: Bool
|
||||
let isCreatorRole: Bool
|
||||
}
|
||||
|
||||
struct CreatorResponse: Decodable {
|
||||
|
|
|
@ -11,6 +11,7 @@ import Kingfisher
|
|||
struct UserProfileCreatorView: View {
|
||||
|
||||
let creator: CreatorResponse
|
||||
let isCreator: Bool
|
||||
|
||||
let creatorFollow: () -> Void
|
||||
let showCreatorFollowNotifyDialog: () -> Void
|
||||
|
@ -42,11 +43,13 @@ struct UserProfileCreatorView: View {
|
|||
|
||||
Spacer()
|
||||
|
||||
if isCreator {
|
||||
Image("btn_big_share")
|
||||
.resizable()
|
||||
.frame(width: 33.3, height: 33.3)
|
||||
.onTapGesture { shareChannel() }
|
||||
}
|
||||
}
|
||||
|
||||
if creator.creatorId == UserDefaults.int(forKey: .userId) {
|
||||
Text("팔로워 리스트")
|
||||
|
@ -158,7 +161,8 @@ struct UserProfileCreatorView_Previews: PreviewProvider {
|
|||
isNotify: false,
|
||||
isNotification: false,
|
||||
notificationRecipientCount: 2
|
||||
)
|
||||
),
|
||||
isCreator: false
|
||||
) {
|
||||
} showCreatorFollowNotifyDialog: {
|
||||
} shareChannel: {
|
||||
|
|
|
@ -52,8 +52,7 @@ struct UserProfileView: View {
|
|||
VStack(spacing: 0) {
|
||||
if let creatorProfile = viewModel.creatorProfile {
|
||||
VStack(spacing: 0) {
|
||||
UserProfileCreatorView(
|
||||
creator: creatorProfile.creator) {
|
||||
UserProfileCreatorView(creator: creatorProfile.creator, isCreator: creatorProfile.isCreatorRole) {
|
||||
viewModel.creatorFollow()
|
||||
} showCreatorFollowNotifyDialog: {
|
||||
isShowFollowNotifyDialog = true
|
||||
|
@ -61,6 +60,7 @@ struct UserProfileView: View {
|
|||
viewModel.shareChannel(userId: userId)
|
||||
}
|
||||
|
||||
if creatorProfile.isCreatorRole {
|
||||
UserProfileActivitySummaryView(item: creatorProfile.activitySummary)
|
||||
.padding(.top, 13.3)
|
||||
.padding(.horizontal, 13.3)
|
||||
|
@ -112,7 +112,9 @@ struct UserProfileView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if creatorProfile.isCreatorRole {
|
||||
if !creatorProfile.seriesList.isEmpty {
|
||||
UserProfileSeriesView(
|
||||
creatorId: creatorProfile.creator.creatorId,
|
||||
|
@ -216,6 +218,7 @@ struct UserProfileView: View {
|
|||
}
|
||||
.padding(.top, 26.7)
|
||||
}
|
||||
}
|
||||
|
||||
UserProfileFanTalkView(
|
||||
userId: userId,
|
||||
|
|
Loading…
Reference in New Issue